Skip to content

Commit

Permalink
Merge pull request #96 from Sudha247/examples-to-int
Browse files Browse the repository at this point in the history
Use ints in examples
  • Loading branch information
nikochiko authored Jan 26, 2024
2 parents 49de3b7 + a21e3ec commit a18f662
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/donut_with_scale.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ open Joy

let () =
init ();
let c = circle 100. in
let c = circle 100 in
let hole = scale 0.5 c in
show [ c; hole ];
write ~filename:"donut_with_scale.png" ()
10 changes: 5 additions & 5 deletions examples/rectangle_canvas.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
open Joy

let () =
init ~size:(500., 300.) ();
background (1., 1., 1., 1.);
let c = circle 50. in
set_color (0., 0., 0.);
init ~size:(500, 300) ();
background (255, 255, 255, 255);
let c = circle 50 in
set_color (0, 0, 0);
show [ c ];
write ~filename:"rectangular_canvas.png" ()
write ~filename:"rectangle_canvas.png" ()

0 comments on commit a18f662

Please sign in to comment.