implicit final class ExOps extends AnyVal
- Alphabetic
- By Inheritance
- ExOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def alpha: Ex[Double]
Alpha component in the range of 0 to 1.
Alpha component in the range of 0 to 1. Zero is fully transparent, one is fully opaque.
- def argb: Ex[Int]
Raw 24-bit integer color value, with 8-bits for alpha, red, green, blue.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def blue: Ex[Double]
Blue component in the range of 0 to 1.
- def brightness: Ex[Double]
Brightness component in the HSB model, in the range of 0 to 1.
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def green: Ex[Double]
Green component in the range of 0 to 1.
- def hue: Ex[Double]
Hue component in the HSB model, in the range of 0 to 1.
Hue component in the HSB model, in the range of 0 to 1. By definition this value is cyclic.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def luminance: Ex[Double]
Relative luminance, defined as
0.2126 red + 0.7152 green + 0.0722 blue
.Relative luminance, defined as
0.2126 red + 0.7152 green + 0.0722 blue
. Alpha is not taken into account. - def mix(b: Ex[Color], w: Ex[Double] = 0.5): Ex[Color]
Mixes this color with a second color
b
, where the weight (amount) ofb
isw
and the weight of this color is1 - b
.Mixes this color with a second color
b
, where the weight (amount) ofb
isw
and the weight of this color is1 - b
. This interpolation is done in the RGB model. - def mixHSB(b: Ex[Color], w: Ex[Double] = 0.5): Ex[Color]
Mixes this color with a second color
b
, where the weight ofb
isw
and the weight of this color is1 - b
.Mixes this color with a second color
b
, where the weight ofb
isw
and the weight of this color is1 - b
. This interpolation is done in the HSB model. - def red: Ex[Double]
Red component in the range of 0 to 1.
- def saturation: Ex[Double]
Saturation component in the HSB model, in the range of 0 to 1.
- def toString(): String
- Definition Classes
- Any