com.metsci.glimpse.support.colormap
Interface ColorMap

All Known Subinterfaces:
ColorGradient
All Known Implementing Classes:
ColorMapLinear, ColorMapLog

public interface ColorMap

Defines a mapping from data values to RGBA colors.

Author:
hogye

Method Summary
 void toColor(float value, float[] rgba)
          Computes the color to be used to display the given value, and stores the color in the rgba array.
 

Method Detail

toColor

void toColor(float value,
             float[] rgba)
Computes the color to be used to display the given value, and stores the color in the rgba array. The rgba array must be a pre-allocated float array of length >= 4.



Copyright © 2012 Metron, Inc.. All Rights Reserved.