API:Prim.blit

From Spherical
Jump to: navigation, search

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