RosettaCodeData/Task/Bitmap/OCaml/bitmap-4.ocaml

7 lines
164 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
let put_pixel_unsafe (_, r_channel, g_channel, b_channel) (r,g,b) =
(fun x y ->
r_channel.{x,y} <- r;
g_channel.{x,y} <- g;
b_channel.{x,y} <- b;
)