sealed abstract class Color extends Product with Serializable
- Alphabetic
- By Inheritance
- Color
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def alpha(a: Normalized): Color
Copies this color, changing the alpha to the given value
- def alpha: Normalized
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def blue: UnsignedByte
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def darken(darkness: Normalized): HSLA
Darken the color by the given amount.
Darken the color by the given amount. This is an absolute amount, not an amount relative to the Color's current lightness. Lightness is clipped at Normalized.MaxValue
- def darkenBy(darkness: Normalized): HSLA
Darken the color by the given *relative* amount.
Darken the color by the given *relative* amount. For example, calling
aColor.darkenBy(0.1.normalizeddecreases the lightness by 10% of the current lightness. - def desaturate(desaturation: Normalized): HSLA
Desaturate the color by the given amount.
Desaturate the color by the given amount. This is an absolute amount, not an amount relative to the Color's current saturation. Saturation is clipped at Normalized.MaxValue
- def desaturateBy(desaturation: Normalized): HSLA
Desaturate the color by the given *relative* amount.
Desaturate the color by the given *relative* amount. For example, calling
aColor.desaturateBy(0.1.normalizeddecreases the saturation by 10% of the current saturation. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fadeIn(opacity: Normalized): HSLA
Increase the alpha channel by the given amount.
- def fadeInBy(opacity: Normalized): HSLA
Increase the alpha channel by the given relative amount.
- def fadeOut(opacity: Normalized): HSLA
Decrease the alpha channel by the given amount.
- def fadeOutBy(opacity: Normalized): HSLA
Decrease the alpha channel by the given relative amount.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def green: UnsignedByte
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hue(angle: Angle): Color
Copies this color, changing the hue to the given value
- def hue: Angle
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lighten(lightness: Normalized): HSLA
Lighten the color by the given amount.
Lighten the color by the given amount. This is an absolute amount, not an amount relative to the Color's current lightness. Lightness is clipped at Normalized.MaxValue
- def lightenBy(lightness: Normalized): HSLA
Lighten the color by the given *relative* amount.
Lighten the color by the given *relative* amount. For example, calling
aColor.lightenBy(0.1.normalizedincreases the lightness by 10% of the current lightness. - def lightness(l: Normalized): Color
Copies this color, changing the lightness to the given value
- def lightness: Normalized
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Definition Classes
- Product
- def productPrefix: String
- Definition Classes
- Product
- def red: UnsignedByte
- def saturate(saturation: Normalized): HSLA
Saturate the color by the given amount.
Saturate the color by the given amount. This is an absolute amount, not an amount relative to the Color's current saturation. Saturation is clipped at Normalized.MaxValue
- def saturateBy(saturation: Normalized): HSLA
Saturate the color by the given *relative* amount.
Saturate the color by the given *relative* amount. For example, calling
aColor.saturateBy(0.1.normalizedincreases the saturation by 10% of the current saturation. - def saturation(s: Normalized): Color
Copies this color, changing the saturation to the given value
- def saturation: Normalized
- def spin(angle: Angle): HSLA
Rotate hue by the given angle
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toHSLA: HSLA
- def toRGBA: RGBA
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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 ~=(that: Color): Boolean
True if this is approximately equal to that