ParticleSystem:getColors

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Gets the series of colors applied to the particle sprite.

In versions prior to 11.0, color component values were within the range of 0 to 255 instead of 0 to 1.

Function

Synopsis

rgba1, rgba2, ..., rgba8 = ParticleSystem:getColors( )

Arguments

Nothing.

Returns

table rgba1
First color, a numerical indexed table with the red, green, blue and alpha values as numbers (0-1).
table rgba2
Second color, a numerical indexed table with the red, green, blue and alpha values as numbers (0-1).
table rgba8
Eighth color, a numerical indexed table with the red, green, blue and alpha values as numbers (0-1).

See Also

Other Languages