Class ColorMap3D.Gradient1D

Enclosing class:
ColorMap3D

public static class ColorMap3D.Gradient1D extends ColorMap.Gradient1D<MeshLambertMaterial>
One dimensional color gradient spanning two or more colors
  • Constructor Details

    • Gradient1D

      public Gradient1D(Color start, Color end, int nIncr)
      Construct color gradient ranging from color start to color end 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:
      start - the starting color
      end - the ending color
      nIncr - the number of intermediate colors
      See Also:
    • Gradient1D

      public Gradient1D(Color[] colors, int nIncr)
      Construct color gradient running through all the colors in the array colors. The number of interpolated intermediate colors between two subsequent entries in colors is (steps-1)/(N-1), where N is the number of colors in 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:
      colors - the equally spaced reference colors of the gradient
      nIncr - the number of intermediate colors
      See Also:
  • Method Details