Class ColorPool

java.lang.Object
org.jbox2d.testbed.pooling.ColorPool

public class ColorPool extends Object
Sun just HAD to make Color immutable, so now I have to make another stupid pool and now I'm all hot and bothered. Also, this pool isn't thread safe!
Author:
Daniel Murphy
  • Constructor Details

    • ColorPool

      public ColorPool()
  • Method Details

    • getColor

      public Color getColor(float r, float g, float b, float alpha)
    • getColor

      public Color getColor(float r, float g, float b)