final case class HSLA(h: Angle, s: Normalized, l: Normalized, a: Normalized) extends Color with Product with Serializable
- Source
- Color.scala
- Alphabetic
- By Inheritance
- HSLA
- Color
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new HSLA(h: Angle, s: Normalized, l: Normalized, a: Normalized)
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
- val a: Normalized
- def alpha(a: Normalized): Color
Copies this color, changing the alpha to the given value
Copies this color, changing the alpha to the given value
- Definition Classes
- Color
- def alpha: Normalized
- Definition Classes
- Color
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def blue: UnsignedByte
- Definition Classes
- Color
- 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
- Definition Classes
- Color
- 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.- Definition Classes
- Color
- 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
- Definition Classes
- Color
- 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.- Definition Classes
- Color
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def fadeIn(opacity: Normalized): HSLA
Increase the alpha channel by the given amount.
Increase the alpha channel by the given amount.
- Definition Classes
- Color
- def fadeInBy(opacity: Normalized): HSLA
Increase the alpha channel by the given relative amount.
Increase the alpha channel by the given relative amount.
- Definition Classes
- Color
- def fadeOut(opacity: Normalized): HSLA
Decrease the alpha channel by the given amount.
Decrease the alpha channel by the given amount.
- Definition Classes
- Color
- def fadeOutBy(opacity: Normalized): HSLA
Decrease the alpha channel by the given relative amount.
Decrease the alpha channel by the given relative amount.
- Definition Classes
- Color
- 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
- Definition Classes
- Color
- val h: Angle
- def hue(angle: Angle): Color
Copies this color, changing the hue to the given value
Copies this color, changing the hue to the given value
- Definition Classes
- Color
- def hue: Angle
- Definition Classes
- Color
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val l: Normalized
- 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
- Definition Classes
- Color
- 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.- Definition Classes
- Color
- def lightness(l: Normalized): Color
Copies this color, changing the lightness to the given value
Copies this color, changing the lightness to the given value
- Definition Classes
- Color
- def lightness: Normalized
- Definition Classes
- Color
- 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 productElementNames: Iterator[String]
- Definition Classes
- Product
- def red: UnsignedByte
- Definition Classes
- Color
- val s: Normalized
- 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
- Definition Classes
- Color
- 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.- Definition Classes
- Color
- def saturation(s: Normalized): Color
Copies this color, changing the saturation to the given value
Copies this color, changing the saturation to the given value
- Definition Classes
- Color
- def saturation: Normalized
- Definition Classes
- Color
- def spin(angle: Angle): HSLA
Rotate hue by the given angle
Rotate hue by the given angle
- Definition Classes
- Color
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toHSLA: HSLA
- Definition Classes
- Color
- def toRGBA: RGBA
- Definition Classes
- Color
- 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
True if this is approximately equal to that
- Definition Classes
- Color