Difference between revisions of "Pixel"
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | <!-- GIDEROSOBJ:Pixel --> | ||
'''<translate>Supported platforms</translate>:''' <br/> | '''<translate>Supported platforms</translate>:''' <br/> | ||
'''<translate>Available since</translate>:''' Gideros 2016.06<br/> | '''<translate>Available since</translate>:''' Gideros 2016.06<br/> | ||
Line 9: | Line 10: | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Methods</translate> === | === <translate>Methods</translate> === | ||
− | [[Special:MyLanguage/Pixel.new|Pixel.new]] ''<translate>Create new pixel</translate>''<br/> | + | [[Special:MyLanguage/Pixel.new|Pixel.new]] ''<translate>Create new pixel</translate>''<br/><!-- GIDEROSMTD:Pixel.new --> |
− | [[Special:MyLanguage/Pixel.new|Pixel.new]] ''<translate>Constructor to create a Pixel with texture in letterbox mode.</translate>''<br/> | + | [[Special:MyLanguage/Pixel.new|Pixel.new]] ''<translate>Constructor to create a Pixel with texture in letterbox mode.</translate>''<br/><!-- GIDEROSMTD:Pixel.new --> |
− | [[Special:MyLanguage/Pixel:getColor|Pixel:getColor]] ''<translate>Gets the color(s) of the Pixel</translate>''<br/> | + | [[Special:MyLanguage/Pixel:getColor|Pixel:getColor]] ''<translate>Gets the color(s) of the Pixel</translate>''<br/><!-- GIDEROSMTD:Pixel:getColor --> |
− | [[Special:MyLanguage/Pixel:getDimensions|Pixel:getDimensions]] <br/> | + | [[Special:MyLanguage/Pixel:getDimensions|Pixel:getDimensions]] <br/><!-- GIDEROSMTD:Pixel:getDimensions --> |
− | [[Special:MyLanguage/Pixel:getTexturePosition|Pixel:getTexturePosition]] <br/> | + | [[Special:MyLanguage/Pixel:getTexturePosition|Pixel:getTexturePosition]] <br/><!-- GIDEROSMTD:Pixel:getTexturePosition --> |
− | [[Special:MyLanguage/Pixel:getTextureScale|Pixel:getTextureScale]] <br/> | + | [[Special:MyLanguage/Pixel:getTextureScale|Pixel:getTextureScale]] <br/><!-- GIDEROSMTD:Pixel:getTextureScale --> |
− | [[Special:MyLanguage/Pixel:setColor|Pixel:setColor]] ''<translate>Sets the color of the Pixel</translate>''<br/> | + | [[Special:MyLanguage/Pixel:setColor|Pixel:setColor]] ''<translate>Sets the color of the Pixel</translate>''<br/><!-- GIDEROSMTD:Pixel:setColor --> |
− | [[Special:MyLanguage/Pixel:setColor|Pixel:setColor]] <br/> | + | [[Special:MyLanguage/Pixel:setColor|Pixel:setColor]] <br/><!-- GIDEROSMTD:Pixel:setColor --> |
− | [[Special:MyLanguage/Pixel:setColor|Pixel:setColor]] ''<translate>Sets 4-colour gradient.</translate>''<br/> | + | [[Special:MyLanguage/Pixel:setColor|Pixel:setColor]] ''<translate>Sets 4-colour gradient.</translate>''<br/><!-- GIDEROSMTD:Pixel:setColor --> |
− | [[Special:MyLanguage/Pixel:setDimensions|Pixel:setDimensions]] ''<translate>Sets both width and height of the Pixel.</translate>''<br/> | + | [[Special:MyLanguage/Pixel:setDimensions|Pixel:setDimensions]] ''<translate>Sets both width and height of the Pixel.</translate>''<br/><!-- GIDEROSMTD:Pixel:setDimensions --> |
− | [[Special:MyLanguage/Pixel:setHeight|Pixel:setHeight]] ''<translate>Sets the height of the pixel sprite.</translate>''<br/> | + | [[Special:MyLanguage/Pixel:setHeight|Pixel:setHeight]] ''<translate>Sets the height of the pixel sprite.</translate>''<br/><!-- GIDEROSMTD:Pixel:setHeight --> |
− | [[Special:MyLanguage/Pixel:setTexture|Pixel:setTexture]] <br/> | + | [[Special:MyLanguage/Pixel:setTexture|Pixel:setTexture]] <br/><!-- GIDEROSMTD:Pixel:setTexture --> |
− | [[Special:MyLanguage/Pixel:setTextureMatrix|Pixel:setTextureMatrix]] <br/> | + | [[Special:MyLanguage/Pixel:setTextureMatrix|Pixel:setTextureMatrix]] <br/><!-- GIDEROSMTD:Pixel:setTextureMatrix --> |
− | [[Special:MyLanguage/Pixel:setTexturePosition|Pixel:setTexturePosition]] <br/> | + | [[Special:MyLanguage/Pixel:setTexturePosition|Pixel:setTexturePosition]] <br/><!-- GIDEROSMTD:Pixel:setTexturePosition --> |
− | [[Special:MyLanguage/Pixel:setTextureScale|Pixel:setTextureScale]] <br/> | + | [[Special:MyLanguage/Pixel:setTextureScale|Pixel:setTextureScale]] <br/><!-- GIDEROSMTD:Pixel:setTextureScale --> |
− | [[Special:MyLanguage/Pixel:setWidth|Pixel:setWidth]] ''<translate>Sets the width of the pixel sprite.</translate>''<br/> | + | [[Special:MyLanguage/Pixel:setWidth|Pixel:setWidth]] ''<translate>Sets the width of the pixel sprite.</translate>''<br/><!-- GIDEROSMTD:Pixel:setWidth --> |
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Events</translate> === | === <translate>Events</translate> === | ||
=== <translate>Constants</translate> === | === <translate>Constants</translate> === | ||
|} | |} |
Revision as of 14:56, 31 August 2018
Supported platforms:
Available since: Gideros 2016.06
Inherits from: Sprite
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 |