Class ParticleColor

java.lang.Object
org.jbox2d.particle.ParticleColor

public class ParticleColor extends Object
Small color object for each particle
Author:
Daniel Murphy
Repolink:
Github: google/liquidfun liquidfun/Box2D/Box2D/Particle/b2Particle.h Lines 80 - 266
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    byte
     
    byte
     
    byte
     
    byte
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    ParticleColor(byte r, byte g, byte b, byte a)
    Constructor with four elements: r (red), g (green), b (blue), and a (opacity).
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    True when all four color elements equal 0.
    void
    set(byte r, byte g, byte b, byte a)
    Sets color for current object using the four elements described above.
    void
    set(Color3f color)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait