HSLA

final case class HSLA(h: Angle, s: Normalized, l: Normalized, a: Normalized) extends Color
class Color
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

Copies this color, changing the alpha to the given value

Copies this color, changing the alpha to the given value

Inherited from
Color
Inherited from
Color
Inherited from
Color
def darken(darkness: Normalized): HSLA

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

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

Inherited from
Color
def darkenBy(darkness: Normalized): HSLA

Darken the color by the given relative amount. For example, calling aColor.darkenBy(0.1.normalized decreases the lightness by 10% of the current lightness.

Darken the color by the given relative amount. For example, calling aColor.darkenBy(0.1.normalized decreases the lightness by 10% of the current lightness.

Inherited from
Color
def desaturate(desaturation: Normalized): HSLA

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

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

Inherited from
Color
def desaturateBy(desaturation: Normalized): HSLA

Desaturate the color by the given relative amount. For example, calling aColor.desaturateBy(0.1.normalized decreases the saturation by 10% of the current saturation.

Desaturate the color by the given relative amount. For example, calling aColor.desaturateBy(0.1.normalized decreases the saturation by 10% of the current saturation.

Inherited from
Color
def fadeIn(opacity: Normalized): HSLA

Increase the alpha channel by the given amount.

Increase the alpha channel by the given amount.

Inherited from
Color
def fadeInBy(opacity: Normalized): HSLA

Increase the alpha channel by the given relative amount.

Increase the alpha channel by the given relative amount.

Inherited from
Color
def fadeOut(opacity: Normalized): HSLA

Decrease the alpha channel by the given amount.

Decrease the alpha channel by the given amount.

Inherited from
Color
def fadeOutBy(opacity: Normalized): HSLA

Decrease the alpha channel by the given relative amount.

Decrease the alpha channel by the given relative amount.

Inherited from
Color
Inherited from
Color
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

Inherited from
Color
def hue: Angle
Inherited from
Color
def lighten(lightness: Normalized): HSLA

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

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

Inherited from
Color
def lightenBy(lightness: Normalized): HSLA

Lighten the color by the given relative amount. For example, calling aColor.lightenBy(0.1.normalized increases the lightness by 10% of the current lightness.

Lighten the color by the given relative amount. For example, calling aColor.lightenBy(0.1.normalized increases the lightness by 10% of the current lightness.

Inherited from
Color

Copies this color, changing the lightness to the given value

Copies this color, changing the lightness to the given value

Inherited from
Color
Inherited from
Color
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
Inherited from
Color
def saturate(saturation: Normalized): HSLA

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

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

Inherited from
Color
def saturateBy(saturation: Normalized): HSLA

Saturate the color by the given relative amount. For example, calling aColor.saturateBy(0.1.normalized increases the saturation by 10% of the current saturation.

Saturate the color by the given relative amount. For example, calling aColor.saturateBy(0.1.normalized increases the saturation by 10% of the current saturation.

Inherited from
Color

Copies this color, changing the saturation to the given value

Copies this color, changing the saturation to the given value

Inherited from
Color
Inherited from
Color
def spin(angle: Angle): HSLA

Rotate hue by the given angle

Rotate hue by the given angle

Inherited from
Color
def toHSLA: HSLA
Inherited from
Color
def toRGBA: RGBA
Inherited from
Color
def ~=(that: Color): Boolean

True if this is approximately equal to that

True if this is approximately equal to that

Inherited from
Color