Pixel: Difference between revisions
Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2016.06<br/> === Description === A rectangular Sprite which can be filled with solid colors, gradient..." |
No edit summary |
||
| Line 4: | Line 4: | ||
=== Description === | === Description === | ||
A rectangular Sprite which can be filled with solid colors, gradients or textures. | A rectangular Sprite which can be filled with solid colors, gradients or textures. | ||
Pixel aims at being a simpler and faster alternative to Shape when needing to display a coloured box or box with a gradient. It is also useful as Bitmap replacement since every texture will be fitted into Pixel dimensions automatically.{|- | Pixel aims at being a simpler and faster alternative to Shape when needing to display a coloured box or box with a gradient. It is also useful as Bitmap replacement since every texture will be fitted into Pixel dimensions automatically. | ||
{|- | |||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
[[Pixel.new]] - Create new pixel<br/> | |||
[[Pixel.new]] - Constructor to create a Pixel with texture in letterbox mode.<br/> | |||
[[Pixel:getColor]] - Gets the color(s) of the Pixel<br/> | |||
[[Pixel:getDimensions]] - <br/> | |||
[[Pixel:getTexturePosition]] - <br/> | |||
[[Pixel:getTextureScale]] - <br/> | |||
[[Pixel:setColor]] - Sets the color of the Pixel<br/> | |||
[[Pixel:setColor]] - <br/> | |||
[[Pixel:setColor]] - Sets 4-colour gradient.<br/> | |||
[[Pixel:setDimensions]] - Sets both width and height of the Pixel.<br/> | |||
[[Pixel:setHeight]] - Sets the height of the pixel sprite.<br/> | |||
[[Pixel:setTexture]] - <br/> | |||
[[Pixel:setTextureMatrix]] - <br/> | |||
[[Pixel:setTexturePosition]] - <br/> | |||
[[Pixel:setTextureScale]] - <br/> | |||
[[Pixel:setWidth]] - Sets the width of the pixel sprite.<br/> | |||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === | ||
=== Constants === | === Constants === | ||
|} | |} | ||
Revision as of 07:58, 23 August 2018
Supported platforms:
Available since: Gideros 2016.06
Description
A rectangular Sprite which can be filled with solid colors, gradients or textures. Pixel aims at being a simpler and faster alternative to Shape when needing to display a coloured box or box with a gradient. It is also useful as Bitmap replacement since every texture will be fitted into Pixel dimensions automatically.
MethodsPixel.new - Create new pixel |
EventsConstants |