Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Munching-squares/OCaml/munching-squares.ocaml
Normal file
13
Task/Munching-squares/OCaml/munching-squares.ocaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
open Graphics
|
||||
|
||||
let () =
|
||||
open_graph "";
|
||||
resize_window 256 256;
|
||||
for y = 0 to pred (size_y()) do
|
||||
for x = 0 to pred (size_x()) do
|
||||
let v = (x lxor y) land 0xFF in
|
||||
set_color (rgb v (255 - v) 0);
|
||||
plot x y
|
||||
done;
|
||||
done;
|
||||
ignore(read_key())
|
||||
Loading…
Add table
Add a link
Reference in a new issue