Skip to content

Commit

Permalink
Use ints in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Jan 26, 2024
1 parent 49de3b7 commit a21e3ec
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 a21e3ec

Please sign in to comment.