Difference between revisions of "API:Prim.blit"
From Spherical
(Created page with "{{subst:functemp|preamble=Draws the specified texture as a plain image.|function=blit|object=Prim|returns=|params=surface,x,y,texture,mask}}") |
|||
Line 1: | Line 1: | ||
+ | Draws the specified texture as a plain image onto ''surface''. | ||
+ | ===== Usage ===== | ||
− | + | '''Prim.blit'''(''surface'', ''x'', ''y'', ''texture'' [, ''mask'']); | |
__TOC__ | __TOC__ | ||
− | == | + | === Parameters === |
− | |||
− | + | :{| class="wikitable" | |
− | + | !Name | |
− | + | !Type | |
+ | !Default Value | ||
+ | !Description | ||
+ | |- | ||
+ | |''<tt>surface</tt>'' | ||
+ | |style="text-align: center;"|''Surface'' | ||
+ | |''n/a (Required)'' | ||
+ | |The surface object that ''texture'' will be drawn onto | ||
+ | |- | ||
+ | |''<tt>x</tt>'' | ||
+ | |style="text-align: center;"|''number'' | ||
+ | |''n/a (Required)'' | ||
+ | |The position on the x axis. | ||
+ | |- | ||
+ | |''<tt>y</tt>'' | ||
+ | |style="text-align: center;"|''number'' | ||
+ | |''n/a (Required)'' | ||
+ | |The position on the y axis. | ||
+ | |- | ||
+ | |''<tt>texture</tt>'' | ||
+ | |style="text-align: center;"|''Texture'' | ||
+ | |''n/a (Required)'' | ||
+ | |The texture to be drawn. | ||
+ | |- | ||
+ | |''<tt>mask</tt>'' | ||
+ | |style="text-align: center;"|''[[Color]]'' | ||
+ | |<tt>Color.White</tt> | ||
+ | |The mask that will be applied | ||
+ | |} | ||
− | == | + | ==See also== |
− | ( | + | * [[API:Prim.blitSection|Prim.blitSection()]] |
− | + | [[Category:Sphere 2 API]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 21:29, 3 January 2019
Draws the specified texture as a plain image onto surface.
Usage
Prim.blit(surface, x, y, texture [, mask]);
Contents
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