class
ColorRamp extends AnyRef
Instance Constructors
-
new
ColorRamp(colors: Seq[Int])
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
alphaGradient(start: Int = 0, stop: Int = 0xFF): ColorRamp
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
val
colors: Seq[Int]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
def
interpolate(nBreaks: Int): ColorRamp
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
setAlpha(a: Int): ColorRamp
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toArray: Array[Int]
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
* List of colors for rendering a raster.
In order to select colors for a raster, one often divides the values in the raster into distinct ranges and selects a color for each range. A ColorRamp provides the colors from which to select.
NB: The list of colors are RGBA values, which are usually represented as 8 character hex string, like "0x0000FFFF" where the last two character encode an alpha (transparency/opacity) value.
Usually on the web, you see "RGB" or "hex" color values, like 0x0000FF (blue). If you have a list of RGB values, use the method ColorRamp.createWithRGBColors.