|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ColorTweaker
Interface defining how a colour is changed from some input colour to some output colour. Two methods are defined which should perform the same transformation, but one uses Color objects and the other an sRGB array. Although it is possible to define each in terms of the other, performance can be improved considerably by implementing them both directly.
Method Summary | |
---|---|
Color |
tweakColor(Color orig)
Returns a tweaked version of the submitted colour. |
void |
tweakColor(float[] rgba)
Adjusts in place an array representing the sRGB components of a colour. |
Method Detail |
---|
Color tweakColor(Color orig)
orig
- input colour
void tweakColor(float[] rgba)
rgba
- red, green, blue, alpha array
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |