GradientPaintScale

case class GradientPaintScale[T](lower: T, upper: T, gradient: Array[Color])(implicit view: Conversion[T, Double]) extends PaintScale[T]

A simple numeric paint scale for mapping a number within a range to a corresponding element of a pre-computed color gradient. Colors from the given gradient array are used linearly to represent values between lower and upper.

trait Serializable
trait Product
trait Equals
trait PaintScale[T]
trait T => Paint
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(value: T): Paint

Inherited methods

def andThen[A](g: Paint => A): T => A
Inherited from:
Function1
def compose[A](g: A => T): A => Paint
Inherited from:
Function1
Inherited from:
Product
override def toString(): String
Definition Classes
Function1 -> Any
Inherited from:
Function1