Jump to content

Draw a pixel: Difference between revisions

added ocaml
(Added Nim example)
(added ocaml)
Line 919:
}
</lang>
 
 
=={{header|OCaml}}==
 
Using the Graphics library provided with the standard OCaml distribution:
 
<lang ocaml>module G = Graphics
 
let () =
G.open_graph "";
G.resize_window 320 240;
G.set_color G.red;
G.plot 100 100;
ignore (G.read_key ())</lang>
 
 
=={{header|Perl}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.