Difference between revisions of "ParticleSystem:setColor"

m
m
 
Line 1: Line 1:
 
{{oldin|[[0.8.0]]|080|type=function|text=It has been replaced with [[ParticleSystem:setColors]]}}
 
{{oldin|[[0.8.0]]|080|type=function|text=It has been replaced with [[ParticleSystem:setColors]]}}
Sets the color of the image (color modulation needs to be activated for it to have any effect).
+
Sets the color of the image.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 20: Line 20:
 
* [[parent::ParticleSystem]]
 
* [[parent::ParticleSystem]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Sets the color of the image (color modulation needs to be activated for it to have any effect).}}
+
{{#set:Description=Sets the color of the image.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|ParticleSystem:setColor}}
 
{{i18n|ParticleSystem:setColor}}

Latest revision as of 01:45, 30 May 2013

Removed in LÖVE 0.8.0
It has been replaced with ParticleSystem:setColors.

Sets the color of the image.

Function

Synopsis

ParticleSystem:setColor( r1, g1, b1, a1, r2, g2, b2, a2 )

Arguments

number r1
Start color, red component (0-255).
number g1
Start color, green component (0-255).
number b1
Start color, blue component (0-255).
number a1
Start color, alpha component (0-255).
number r2 (r1)
End color, red component (0-255).
number g2 (g1)
End color, green component (0-255).
number b2 (b1)
End color, blue component (0-255).
number a2 (a1)
End color, alpha component (0-255).

Returns

Nothing.

See Also


Other Languages