ExOps

final implicit
class ExOps(x: Ex[Color]) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def alpha: Ex[Double]

Alpha component in the range of 0 to 1. Zero is fully transparent, one is fully opaque.

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.

Raw 24-bit integer color value, with 8-bits for alpha, red, green, blue.

def blue: Ex[Double]

Blue component in the range of 0 to 1.

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.

Brightness component in the HSB model, in the range of 0 to 1.

def green: Ex[Double]

Green component in the range of 0 to 1.

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. By definition this value is cyclic.

Hue component in the HSB model, in the range of 0 to 1. By definition this value is cyclic.

def luminance: Ex[Double]

Relative luminance, defined as 0.2126 red + 0.7152 green + 0.0722 blue. Alpha is not taken into account.

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]): Ex[Color]

Mixes this color with a second color b, where the weight (amount) of b is w and the weight of this color is 1 - b. This interpolation is done in the RGB model.

Mixes this color with a second color b, where the weight (amount) of b is w and the weight of this color is 1 - b. This interpolation is done in the RGB model.

def mixHSB(b: Ex[Color], w: Ex[Double]): Ex[Color]

Mixes this color with a second color b, where the weight of b is w and the weight of this color is 1 - b. This interpolation is done in the HSB model.

Mixes this color with a second color b, where the weight of b is w and the weight of this color is 1 - b. This interpolation is done in the HSB model.

def red: Ex[Double]

Red component in the range of 0 to 1.

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.

Saturation component in the HSB model, in the range of 0 to 1.