Class ColorMap3D.Index

Enclosing class:
ColorMap3D

public static class ColorMap3D.Index extends ColorMap.Index<MeshLambertMaterial>
Associates integer indices with colors.
  • Constructor Details

    • Index

      public Index(Color[] colors)
      Construct a new Index color map.
      Parameters:
      colors - the array of colors to assign to indices
    • Index

      public Index(Color[] colors, int alpha)
      Construct a new Index color map with transparency where \(\alpha\in[0,255]\) with \(0\) fully transparent and \(255\) fully opaque.

      Note: this is a convenient way to generate maps with a different transparency. The transparency of the supplied colors is always honoured but overruled if alpha != 255.

      Parameters:
      colors - the array of colors to assign to indices
      alpha - the alpha value for opaque colors
  • Method Details