Surface.blit
From Spheriki
Draw the surface onto the screen.
Contents |
Usage
- surface Sphere Surface object. The surface to draw to the screen.
- x number. X coordinate to draw the surface on the screen, in pixels.
- y number. Y coordinate to draw the surface on the screen, in pixels.
Examples
Surface.blit() can be used exactly like Image.blit():
var s = LoadSurface("my_file.png"); // Do stuff to s s.blit(10, 40);
Notes
- Although surfaces can be drawn just like images, it is faster to convert a surface into an image if you intend to blit it multiple times.