RGB

Digital implementation of RGB color format.

Constructors

this
this(T red, U green, V blue)

Parametrized ctor for working with any arithmetic types

Members

Aliases

blue
alias blue = B
Undocumented in source.
green
alias green = G
Undocumented in source.
red
alias red = R

Mixins for typed getter

setBlue
alias setBlue = B
Undocumented in source.
setGreen
alias setGreen = G
Undocumented in source.
setRed
alias setRed = R

Funcs for changing components of color

Functions

distance
T distance(RGB rhs)
gamma
RGB gamma(T coefficient, U power)

Gamma correction

invert
RGB invert()

Inversion

log
RGB log(T base)

Logarithm of the color

opBinary
RGB opBinary(RGB rhs)

Arithmetic operations for colors

opBinary
RGB opBinary(T rhs)
opBinaryRight
RGB opBinaryRight(T rhs)

Arithmetic operations between color and arithmetic types

opOpAssign
void opOpAssign(RGB rhs)

Arithmetic operations for colors

toString
string toString()

Properties

B
T B [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
B
auto B [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
G
T G [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
G
auto G [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
R
T R [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
R
auto R [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

getCached
int getCached()
Undocumented in source. Be warned that the author may not have intended to support it.
getColor
RGB getColor(T red, U green, V blue)
Undocumented in source. Be warned that the author may not have intended to support it.
getColor
RGB getColor(RGB color)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta