oboy/src/screen.ml

20 lines
269 B
OCaml
Raw Normal View History

2015-03-25 16:20:06 +01:00
type pixel = {
r : char;
g : char;
b : char;
a : char;
}
type t = {
width : int;
height : int;
data : pixel array;
}
let init_screen w h =
{
width = w;
height = h;
data = Array.make_matrix h w { r = 255; g = 255; b = 255; a = 255 }
}