CreateSurface
From Spheriki
Create a new Surface with a given width, height and color.
[edit]
Usage
Surface CreateSurface(width, height, color);
- width Number, positive. Width of the new surface in pixels.
- height Number, positive. Height of the new surface in pixels.
- color Sphere Color object. The initial color of all pixels for the new surface.
- Surface is returned, which is the new Surface object.
[edit]
Examples
To make a simple 30 * 60 wide rectangular surface, initially white:
var white = CreateColor(255, 255, 255); var surface = CreateSurface(30, 60, white);
That's it!
[edit]

