Skip to content

Commit

Permalink
Add donut-with-scaling example
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Jan 16, 2024
1 parent cfa6230 commit cf58219
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/donut_with_scale.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
open Joy

let () =
init ();
let c = circle 100. in
let hole = scale 0.5 c in
show [ c; hole ];
write ~filename:"donut_with_scale.png" ()
5 changes: 5 additions & 0 deletions examples/dune
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,8 @@
(name repeat)
(modules repeat)
(libraries joy))

(executable
(name donut_with_scale)
(modules donut_with_scale)
(libraries joy))

0 comments on commit cf58219

Please sign in to comment.