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
-
def
+(other: String): String
-
def
->[B](y: B): (ColorRamp, B)
-
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]
-
def
ensuring(cond: (ColorRamp) ⇒ Boolean, msg: ⇒ Any): ColorRamp
-
-
def
ensuring(cond: Boolean, msg: ⇒ Any): ColorRamp
-
def
ensuring(cond: Boolean): ColorRamp
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
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
-
def
→[B](y: B): (ColorRamp, B)
Shadowed Implict Value Members
-
val
self: Any
-
val
self: Any
Inherited from AnyRef
Inherited from Any
Inherited by implicit conversion any2stringadd from
ColorRamp to StringAdd
Inherited by implicit conversion any2stringfmt from
ColorRamp to StringFormat
* 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.