JaRMoS
1.1
Java Reduced Model Simulations
|
The color generator is used to produce RGBA (RGB+Alpha) values from a given array of floats. More...
Public Member Functions | |
float[] | getDefaultColor (int size) |
Returns an array with "size" default colors (effectively 4*size RGBT values) More... | |
float[] | computeColors (float[] fieldValues) |
Computes a 4-tuple color array with values R, G, B, Alpha for the given field values. More... | |
Public Attributes | |
ColorMap | ColorMap |
The color map to use. More... | |
float | alphaValue = 0.8f |
default alpha value, use 1.0f for nonblend rendering More... | |
The color generator is used to produce RGBA (RGB+Alpha) values from a given array of floats.
The resulting array is four times the size of the original array.
For coloring, any given ColorMap instance is used to obtain suitable coloring. If none is given, the #getDefaultColors method can be used.
Definition at line 18 of file ColorGenerator.java.
float [] jarmos.visual.ColorGenerator.computeColors | ( | float[] | fieldValues | ) |
Computes a 4-tuple color array with values R, G, B, Alpha for the given field values.
fieldValues |
Definition at line 53 of file ColorGenerator.java.
float [] jarmos.visual.ColorGenerator.getDefaultColor | ( | int | size | ) |
Returns an array with "size" default colors (effectively 4*size RGBT values)
size |
Definition at line 36 of file ColorGenerator.java.
float jarmos.visual.ColorGenerator.alphaValue = 0.8f |
default alpha value, use 1.0f for nonblend rendering
Definition at line 28 of file ColorGenerator.java.
ColorMap jarmos.visual.ColorGenerator.ColorMap |
The color map to use.
Definition at line 23 of file ColorGenerator.java.