Class ColorMap3D.Hue

Enclosing class:
ColorMap3D

public static class ColorMap3D.Hue extends ColorMap.Hue<MeshLambertMaterial>
Color gradient following the hue.

The actual data-to-color translation is performed in the super class.

See Also:
  • Constructor Details

    • Hue

      public Hue(int nIncr)
      Construct a new Hue color map, starting at a hue of 0.0 (red) up to hue 1.0 (red, again) and interpolate with steps-1 intermediate colors. The resulting gradient spans steps+1 colors. The default range for mapping data values onto the color gradient is [0.0, 1.0].
      Parameters:
      nIncr - the number of intermediate colors
      See Also:
    • Hue

      public Hue(double start, double end, int nIncr)
      Construct a new Hue color map, starting at hue start up to hue end (both in [0.0, 1.0]) and interpolate with steps-1 intermediate colors. The resulting gradient spans steps+1 colors. The default range for mapping data values onto the color gradient is [0.0, 1.0].

      Notes:

      1. If end≤start the colors warp around through red.
      2. If steps<0 the hue is interpolated in reverse.
      3. The saturation and brightness of the gradient are both maximal.
      Parameters:
      start - the starting hue
      end - the ending hue
      nIncr - the number of intermediate colors
      See Also:
  • Method Details