org.jbox2d.testbed.pooling
Class ColorPool

java.lang.Object
  extended by 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 Summary
ColorPool()
           
 
Method Summary
 Color getColor(float r, float g, float b)
           
 Color getColor(float r, float g, float b, float alpha)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorPool

public ColorPool()
Method Detail

getColor

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

getColor

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


Copyright © 2012. All Rights Reserved.