Packages

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

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RGB
  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 RGB(r: Double, g: Double, b: 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): RGB

    scaling with scalar number

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

    scaling with scalar number

  5. def +(other: RGB): RGB

    addition of another RGB

  6. def -(other: RGB): RGB

    subtraction of another RGB

  7. def /(other: RGB): RGB

    component-wise division

  8. def /(f: Double): RGB

    scaling with scalar number

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

    blend with RGBA: RGBA pixel overlay, this color as basis

  13. def clamped: RGB

    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: RGB): 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 luminance: Double
  24. def map(f: (Double) => Double): RGB

    applies f to all channels

  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def norm: Double

    l2 norm of color rgb values

  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. def productElementNames: Iterator[String]
    Definition Classes
    Product
  30. val r: Double
  31. def sum: 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 toRGBA: RGBA

    convert to RGBA with full opacity

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

    convert to Tuple

  36. def toVector: EuclideanVector[_3D]

    convert to standard Vector[_3D]

  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: RGB): RGB

    component-wise multiplication

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped