Package org.jbox2d.particle
Class ParticleColor
java.lang.Object
org.jbox2d.particle.ParticleColor
Small color object for each particle
- Author:
- Daniel Murphy
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParticleColor(byte r, byte g, byte b, byte a) Constructor with four elements: r (red), g (green), b (blue), and a (opacity).ParticleColor(Color3f color) -
Method Summary
-
Field Details
-
r
public byte r -
g
public byte g -
b
public byte b -
a
public byte a
-
-
Constructor Details
-
ParticleColor
public ParticleColor() -
ParticleColor
public ParticleColor(byte r, byte g, byte b, byte a) Constructor with four elements: r (red), g (green), b (blue), and a (opacity). Each element can be specified 0 to 255.- Parameters:
r- The color red.g- The color green.b- The color blue.a- The alpha channel (opacity).
-
ParticleColor
-
-
Method Details
-
set
-
set
-
isZero
public boolean isZero()True when all four color elements equal 0. When true, a particle color buffer isn't allocated.- Returns:
- True when all four color elements equal 0.
-
set
public void set(byte r, byte g, byte b, byte a) Sets color for current object using the four elements described above.- Parameters:
r- The color red.g- The color green.b- The color blue.a- The alpha channel (opacity).
-