API:Prim.blit

From Spherical
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Draws the specified texture as a plain image onto surface.

Usage
Prim.blit(surface, x, y, texture [, mask]);

Parameters

Name Type Default Value Description
surface Surface n/a (Required) The surface object that texture will be drawn onto
x number n/a (Required) The position on the x axis.
y number n/a (Required) The position on the y axis.
texture Texture n/a (Required) The texture to be drawn.
mask Color Color.White The mask that will be applied

See also