Packages

case class RGBA(r: Double, g: Double, b: Double, a: Double) extends Product with Serializable

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RGBA
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RGBA(r: Double, g: Double, b: Double, a: Double)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def *(f: Double): RGBA

    scaling

  4. def *:(f: Double): RGBA

    scaling with scalar number

  5. def +(other: RGBA): RGBA

    addition

  6. def -(other: RGBA): RGBA

    subtraction

  7. def /(other: RGBA): RGBA

    component-wise division

  8. def /(f: Double): RGBA

    scaling

  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. val a: Double
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. val b: Double
  13. def clamped: RGBA

    clamp all values to valid range [0, 1]

  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  15. def dot(other: RGBA): Double

    dot product

  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. val g: Double
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def gray: Double

    average intensity value

  21. def isInBounds: Boolean
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def map(f: (Double) => Double): RGBA

    applies f to all channels

  24. def mapRGB(f: (RGB) => RGB): RGBA

    apply an operation to RGB part, keep alpha channel

  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def noAlpha: RGBA

    remove transparency

  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. def over(that: RGBA): RGBA

    blending of two colors: this over that (see "over" in alpha blending)

  30. def productElementNames: Iterator[String]
    Definition Classes
    Product
  31. val r: Double
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toAWTColor: Color

    convert to AWT default color expects a clamped color value

  34. def toOptionRGB: Option[RGB]

    treat non-opaque pixels as not available

  35. def toRGB: RGB

    convert to RGB

  36. def toTuple: (Double, Double, Double, Double)

    convert to Tuple

  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  40. def x(other: RGBA): RGBA

    component-wise multiplication

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped