org.bouncycastle.graphics.rt
Class ColorMap
java.lang.Object
|
+--org.bouncycastle.graphics.rt.ColorMap
- public class ColorMap
- extends java.lang.Object
create a spline interpolated color map, using either on input array
of colors, or by parsing the appropriate XML.
An example XML for a color map is:
<ColorMap>
0, 0, 0,
0.1, 0.2, 0.1,
0.3, 0.4, 0.1,
0.5, 0.6, 0.1,
0.7, 0.8, 0.1,
1.0, 1.0, 0.1
</ColorMap>
Method Summary |
Color3f |
colorAt(double f)
get the color for the index into the color map f. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorMap
public ColorMap(Color3f[] colors)
ColorMap
public ColorMap(RMLReader in)
throws java.io.IOException
colorAt
public Color3f colorAt(double f)
- get the color for the index into the color map f. f is expected
to be in the range 0 to 1.