Packages

c

faces.render.prt

GreyOrRGBExtension

implicit final class GreyOrRGBExtension[T] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GreyOrRGBExtension
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GreyOrRGBExtension(thiz: GreyOrRGB[T])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def broadcastToRGB: TupleRGB[T]

    If this instance is monochromatic, it will be broadcast to a three channel representation.

  6. def combine[B, C](other: GreyOrRGB[B])(combiner: (T, B) ⇒ C): GreyOrRGB[C]

    Combines two instances of GreyOrRGB component-wise.

    Combines two instances of GreyOrRGB component-wise. If one instance is monochromatic while the other has three channels, the monochromatic instance will be broadcast to three channels (c.f. broadcast()).

  7. def forAllChannels[R](f: (T) ⇒ Boolean): Boolean

    Tests a conditions for all channels.

  8. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  9. def isGrey: Boolean

    Checks whether this instance represents a monochromatic value.

  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def isRGB: Boolean

    Checks whether this instance represents a colored value.

  12. def mapFirstChannel[R](f: (T) ⇒ R): R

    Applies a function to the first color channel only (i.e.

    Applies a function to the first color channel only (i.e. monochromatic channel or red for RGB). The result always has one channel only.

  13. def mapGreyOrRGB[R](f: (T) ⇒ R): GreyOrRGB[R]

    Applies a function to each color channel individually.

  14. def projectToGrey: T

    If this instance has three channels, the first one is returned.

  15. val thiz: GreyOrRGB[T]
  16. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped