Package org.jbox2d.testbed.pooling
Class ColorPool
- java.lang.Object
-
- org.jbox2d.testbed.pooling.ColorPool
-
public class ColorPool extends java.lang.Object
Sun just HAD to makeColor
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!
-
-
Constructor Summary
Constructors Constructor Description ColorPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Color
getColor(float r, float g, float b)
java.awt.Color
getColor(float r, float g, float b, float alpha)
-