Difference between revisions of "Pixel:setColor"
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | <languages /> | ||
'''<translate>Available since</translate>:''' Gideros 2016.06<br/> | '''<translate>Available since</translate>:''' Gideros 2016.06<br/> | ||
'''<translate>Class</translate>:''' [[Special:MyLanguage/Pixel|Pixel]]<br/> | '''<translate>Class</translate>:''' [[Special:MyLanguage/Pixel|Pixel]]<br/> | ||
Line 11: | Line 12: | ||
'''alpha''': (number) <translate>New alpha value</translate> '''optional'''<br/> | '''alpha''': (number) <translate>New alpha value</translate> '''optional'''<br/> | ||
__NOTOC__ | __NOTOC__ | ||
+ | <languages /> | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
'''<translate>Class</translate>:''' [[Special:MyLanguage/Pixel|Pixel]]<br/> | '''<translate>Class</translate>:''' [[Special:MyLanguage/Pixel|Pixel]]<br/> | ||
Line 25: | Line 27: | ||
'''angle''': (number) <translate>Sets rotation of the gradient in degrees. Default value is 270: top-bottom gradient.</translate> '''optional'''<br/> | '''angle''': (number) <translate>Sets rotation of the gradient in degrees. Default value is 270: top-bottom gradient.</translate> '''optional'''<br/> | ||
__NOTOC__ | __NOTOC__ | ||
+ | <languages /> | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
'''<translate>Class</translate>:''' [[Special:MyLanguage/Pixel|Pixel]]<br/> | '''<translate>Class</translate>:''' [[Special:MyLanguage/Pixel|Pixel]]<br/> |
Revision as of 09:58, 3 September 2018
Available since: Gideros 2016.06
Class: Pixel
Description
Sets the color of the Pixel
Pixel:setColor(color,alpha)
Parameters
color: (number) new color optional
alpha: (number) New alpha value optional
Available since: Gideros 2011.6
Class: Pixel
Description
Sets two-colour gradient fill with optional rotation to Pixel.
Pixel:setColor(color1,alpha1,color2,alpha2,angle)
Parameters
color1: (number) First color of the gradient.
alpha1: (number) First alpha of the gradient.
color2: (number) Second color of the gradient.
alpha2: (number) Second alpha of the gradient.
angle: (number) Sets rotation of the gradient in degrees. Default value is 270: top-bottom gradient. optional
Available since: Gideros 2011.6
Class: Pixel
Description
Sets 4-colour gradient fill to Pixel.
Pixel:setColor(color1,alpha1,color2,alpha2,color3,alpha3,color4,alpha4)
Parameters
color1: (number) Color of top-left gradient corner.
alpha1: (number) Alpha of top-left gradient corner.
color2: (number) Color of top-right gradient corner.
alpha2: (number) Alpha of top-right gradient corner.
color3: (number) Color of bottom-right gradient corner.
alpha3: (number) Alpha of bottom-right gradient corner.
color4: (number) Color of bottom-left gradient corner.
alpha4: (number) Alpha of bottom-left gradient corner.