case class RGBA(r: Double, g: Double, b: Double, a: Double) extends Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RGBA
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new RGBA(r: Double, g: Double, b: Double, a: Double)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def *(f: Double): RGBA
scaling
- def *:(f: Double): RGBA
scaling with scalar number
- def +(other: RGBA): RGBA
addition
- def -(other: RGBA): RGBA
subtraction
- def /(other: RGBA): RGBA
component-wise division
- def /(f: Double): RGBA
scaling
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val a: Double
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val b: Double
- def clamped: RGBA
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: RGBA): 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 map(f: (Double) => Double): RGBA
applies f to all channels
- def mapRGB(f: (RGB) => RGB): RGBA
apply an operation to RGB part, keep alpha channel
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noAlpha: RGBA
remove transparency
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def over(that: RGBA): RGBA
blending of two colors: this over that (see "over" in alpha blending)
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val r: 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 toOptionRGB: Option[RGB]
treat non-opaque pixels as not available
- def toRGB: RGB
convert to RGB
- def toTuple: (Double, Double, Double, Double)
convert to Tuple
- 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: RGBA): RGBA
component-wise multiplication