object ColorRamp extends Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ColorRamp
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(colors: Int*)(implicit d: DummyImplicit): ColorRamp
- def apply(colors: Traversable[Int]): ColorRamp
- def apply(colors: Array[Int]): ColorRamp
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
chooseColors(c: Vector[Int], numColors: Int): Vector[Int]
RGBA interpolation logic
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- implicit def colorRampToIntArray(colorRamp: ColorRamp): Array[Int]
- implicit def colorRampToIntVector(colorRamp: ColorRamp): Vector[Int]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- implicit def intArrayToColorRamp(colors: Array[Int]): ColorRamp
- implicit def intVectorToColorRamp(colors: Vector[Int]): ColorRamp
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()