Skip to content

Commit

Permalink
add fuse task
Browse files Browse the repository at this point in the history
  • Loading branch information
dm0n3y committed Feb 18, 2025
1 parent 2ecf1d3 commit f2b3147
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/web/store/Data.re
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ let uncurry_modify = {|let fold_right:
(A -> Acc -> Acc) -> List(A) -> Acc -> Acc = in
fold_right(fun n -> fun sum -> n + sum)(ns)(0)|};

let fuse_modify = {|shapes
|> List.filter(fun s -> area(s) < 100)
|> List.map(fun s ->
let stdDev = if area(s) < 50 then 2 else 4 in
let blurred = blur(stdDev, s) in
blend(blurred, greenRect)
)
|> List.map(skew(4))|};

let emoji_paint = {|type Emoji = None + Smile + Laugh in
let Row = Int in
let Col = Int in
Expand Down
1 change: 1 addition & 0 deletions src/web/store/Store.re
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ let tasks = [
Data.t3_transcribe,
Data.t4_transcribe,
Data.uncurry_modify,
Data.fuse_modify,
// Data.emoji_paint,
// Data.t0_modify,
// Data.t1_modify,
Expand Down

0 comments on commit f2b3147

Please sign in to comment.