set Color
Sets the color of the particle.
Parameters
red
the red value between 0 and 1.
green
the green value between 0 and 1.
blue
the blue value between 0 and 1.
fun setColor(red: Float, green: Float, blue: Float, alpha: Float): Particle
Content copied to clipboard
Sets the color of the particle.
Parameters
red
the red value between 0 and 1.
green
the green value between 0 and 1.
blue
the blue value between 0 and 1.
alpha
the alpha value between 0 and 1.