Difference between revisions of "Sprite:setAlpha"

From GiderosMobile
Line 12: Line 12:
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''alpha''': (number) <translate>The new alpha transparency of the sprite</translate> <br/>
 
'''alpha''': (number) <translate>The new alpha transparency of the sprite</translate> <br/>
 +
 +
{{Sprite}}

Revision as of 00:15, 4 December 2019


Available since: Gideros 2011.6
Class: Sprite

Description


Sets the alpha transparency of this sprite. 0 means fully transparent and 1 means fully opaque.

 Sprite:setAlpha(alpha)

Parameters

alpha: (number) The new alpha transparency of the sprite