API:Prim.blit

From Spherical
Revision as of 21:29, 3 January 2019 by Eggbert (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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