Difference between revisions of "ParticleSystem:getColors"
(Updated for 11.0) |
(This method has always returned tables.) |
||
Line 6: | Line 6: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | rgba1, rgba2, ..., rgba8 = ParticleSystem:getColors( ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
Nothing. | Nothing. | ||
=== Returns === | === Returns === | ||
− | {{param| | + | {{param|table|rgba1|First color, a numerical indexed table with the red, green, blue and alpha values as numbers (0-1).}} |
− | + | {{param|table|rgba2|Second color, a numerical indexed table with the red, green, blue and alpha values as numbers (0-1).}} | |
− | + | {{param|table|rgba8|Eighth color, a numerical indexed table with the red, green, blue and alpha values as numbers (0-1).}} | |
− | |||
− | {{param| | ||
− | |||
− | |||
− | |||
− | {{param| | ||
− | |||
− | |||
− | |||
== See Also == | == See Also == | ||
* [[parent::ParticleSystem]] | * [[parent::ParticleSystem]] |
Latest revision as of 15:35, 17 May 2020
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
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info