Pixel.new

From GiderosMobile
Revision as of 10:04, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2016.06<br/> === Description === Create new pixel <source lang="lua"> = Pixel.new(coloralphawidthheight,) </source> '''color:''' (numb...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2016.06

Description

Create new pixel

= Pixel.new(coloralphawidthheight,)

color: (number) hex value representing color optional
alpha: (number) alpha value from 0 to 1 optional
width: (number) width of pixel optional
height: (number) height of pixel optional

Available since: in development

Description

Constructor to create a Pixel with texture in letterbox mode. Every texture will be fitted into Pixel dimensions with preserving texture aspect ratio.

= Pixel.new(texturewidthheighttexture_scale_xtexture_scale_ytexture_xtexture_y,)

'texture: (Texture) texture to use for the pixel '
width: (number) width of the Pixel optional
height: (number) height of the Pixel optional
texture_scale_x: (number) horizontal scale of the pixel texture optional
texture_scale_y: (number) vertical scale of the pixel texture optional
texture_x: (number) horizontal position of the pixel texture optional
texture_y: (number) vertical position of the pixel texture optional