Dev - Lua Libraries
Lua Command: s3sprite.setBrightness
Parameters
Return Values
void
- no return valuesSignature
Description
Changes the brightness of a sprite. brightness ranges from 0.0 (dark) to 1.0 (bright). Internally this is equal to s3sprite.setColor with red, green and blue parameters all set to brightness*255.
You can also change the brightness of all children of the sprite by setting recursive to true. By default no children will be changed.
You can also change the brightness of all children of the sprite by setting recursive to true. By default no children will be changed.