object ColorRamp extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ColorRamp
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply(colors: Int*)(implicit d: DummyImplicit): ColorRamp
  2. def apply(colors: Traversable[Int]): ColorRamp
  3. def apply(colors: Array[Int]): ColorRamp
  4. def chooseColors(c: Vector[Int], numColors: Int): Vector[Int]

    RGBA interpolation logic

  5. implicit def colorRampToIntArray(colorRamp: ColorRamp): Array[Int]
  6. implicit def colorRampToIntVector(colorRamp: ColorRamp): Vector[Int]
  7. implicit def intArrayToColorRamp(colors: Array[Int]): ColorRamp
  8. implicit def intVectorToColorRamp(colors: Vector[Int]): ColorRamp
  9. def spread(colors: Vector[Int], n: Int): Vector[Int]

    This method will return a smaller list of colors the provided list of colors, spaced out amongst the provided color list.

    This method will return a smaller list of colors the provided list of colors, spaced out amongst the provided color list. Used internally for normalization

    For example, if we are provided a list of 9 colors on a red to green gradient, but only need a list of 3, we expect to get back a list of 3 colors with the first being red, the second color being the 5th color (between red and green), and the last being green.

    colors

    Provided RGBA color values

    n

    Length of list to return