Dev - Lua Libraries

Lua Command: s3sprite.getBrightness

Parameters

void

- no parameters

Return Values

Signature

float brightness = s3sprite.getBrightness()

Description

Gets the brightness of a sprite. See s3sprite.setBrightness for details.

Note:

Internally this will just return the red value of the current sprite color. So the result might be misleading if the color is not a shade of gray.