case class RGB(r: Double, g: Double, b: Double) extends Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RGB
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new RGB(r: Double, g: Double, b: Double)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def *(f: Double): RGB
scaling with scalar number
- def *:(f: Double): RGB
scaling with scalar number
- def +(other: RGB): RGB
addition of another RGB
- def -(other: RGB): RGB
subtraction of another RGB
- def /(other: RGB): RGB
component-wise division
- def /(f: Double): RGB
scaling with scalar number
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val b: Double
- def blend(color: RGBA): RGB
blend with RGBA: RGBA pixel overlay, this color as basis
- def clamped: RGB
clamp all values to valid range [0, 1]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def dot(other: RGB): Double
dot product
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val g: Double
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def gray: Double
average intensity value
- def isInBounds: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def luminance: Double
- def map(f: (Double) => Double): RGB
applies f to all channels
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def norm: Double
l2 norm of color rgb values
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val r: Double
- def sum: Double
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toAWTColor: Color
convert to AWT default color expects a clamped color value
- def toRGBA: RGBA
convert to RGBA with full opacity
- def toTuple: (Double, Double, Double)
convert to Tuple
- def toVector: EuclideanVector[_3D]
convert to standard Vector[_3D]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def x(other: RGB): RGB
component-wise multiplication