Color

doodle.core.Color
See theColor companion object
sealed abstract class Color extends Product with Serializable

Attributes

Companion:
object
Source:
Color.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
class HSLA
class RGBA

Members list

Concise view

Value members

Concrete methods

Attributes

Source:
Color.scala

Copies this color, changing the alpha to the given value

Copies this color, changing the alpha to the given value

Attributes

Source:
Color.scala

Attributes

Source:
Color.scala
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

Attributes

Source:
Color.scala
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.

Attributes

Source:
Color.scala
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

Attributes

Source:
Color.scala
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.

Attributes

Source:
Color.scala
def fadeIn(opacity: Normalized): HSLA

Increase the alpha channel by the given amount.

Increase the alpha channel by the given amount.

Attributes

Source:
Color.scala
def fadeInBy(opacity: Normalized): HSLA

Increase the alpha channel by the given relative amount.

Increase the alpha channel by the given relative amount.

Attributes

Source:
Color.scala
def fadeOut(opacity: Normalized): HSLA

Decrease the alpha channel by the given amount.

Decrease the alpha channel by the given amount.

Attributes

Source:
Color.scala
def fadeOutBy(opacity: Normalized): HSLA

Decrease the alpha channel by the given relative amount.

Decrease the alpha channel by the given relative amount.

Attributes

Source:
Color.scala

Attributes

Source:
Color.scala
def hue: Angle

Attributes

Source:
Color.scala
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

Attributes

Source:
Color.scala
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

Attributes

Source:
Color.scala
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.

Attributes

Source:
Color.scala

Attributes

Source:
Color.scala

Copies this color, changing the lightness to the given value

Copies this color, changing the lightness to the given value

Attributes

Source:
Color.scala

Attributes

Source:
Color.scala
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

Attributes

Source:
Color.scala
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.

Attributes

Source:
Color.scala

Attributes

Source:
Color.scala

Copies this color, changing the saturation to the given value

Copies this color, changing the saturation to the given value

Attributes

Source:
Color.scala
def spin(angle: Angle): HSLA

Rotate hue by the given angle

Rotate hue by the given angle

Attributes

Source:
Color.scala

Attributes

Source:
Color.scala

Attributes

Source:
Color.scala
def ~=(that: Color): Boolean

True if this is approximately equal to that

True if this is approximately equal to that

Attributes

Source:
Color.scala

Inherited methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product