class ColorRamp extends Serializable
A ColorRamp represents a sequence of RGBA color values
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ColorRamp
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- val colors: Vector[Int]
- def numStops: Int
-
def
setAlpha(alphaPct: Double): ColorRamp
Set a uniform alpha value for all contained colors
-
def
setAlpha(a: Int): ColorRamp
Set a uniform alpha value for all contained colors
-
def
setAlphaGradient(start: Int = 0, stop: Int = 0xFF): ColorRamp
Transform this instances colors such that the transformed colors sit along an alpha gradient.
Transform this instances colors such that the transformed colors sit along an alpha gradient.
- start
An integer whose last two bytes are the alpha value at the start of the gradient (default 0)
- stop
An integer whose last two bytes are the alpha value at the end of the gradient (default 255)
- def stops(requestedNumStops: Int): ColorRamp
- def toColorMap(histogram: histogram.Histogram[Double], options: Options)(implicit d: DummyImplicit): ColorMap
- def toColorMap(histogram: histogram.Histogram[Double])(implicit d: DummyImplicit): ColorMap
- def toColorMap(histogram: histogram.Histogram[Int], options: Options): ColorMap
- def toColorMap(histogram: histogram.Histogram[Int]): ColorMap
- def toColorMap(breaks: Vector[Double], options: Options)(implicit d: DummyImplicit): ColorMap
- def toColorMap(breaks: Vector[Double])(implicit d: DummyImplicit): ColorMap
- def toColorMap(breaks: Array[Double], options: Options)(implicit d: DummyImplicit): ColorMap
- def toColorMap(breaks: Array[Double])(implicit d: DummyImplicit): ColorMap
- def toColorMap(breaks: Vector[Int], options: Options): ColorMap
- def toColorMap(breaks: Vector[Int]): ColorMap
- def toColorMap(breaks: Array[Int], options: Options): ColorMap
-
def
toColorMap(breaks: Array[Int]): ColorMap
Overloads for creating a ColorMap from a color ramp, for convenience.
Overloads for creating a ColorMap from a color ramp, for convenience. Try to keep parity with ColorMap object creations