Color4f

RGBA floating-point color representation, encapsulates Vector4f

Constructors

this
this(Color4 c, uint bitDepth)
Undocumented in source.
this
this(Color4f c)
Undocumented in source.
this
this(Vector4f v)
Undocumented in source.
this
this(Vector3f v)
Undocumented in source.
this
this(float cr, float cg, float cb, float ca)
Undocumented in source.

Alias This

vec

Members

Aliases

luminance
alias luminance = luminance709
Undocumented in source.

Functions

convert
Color4 convert(int bitDepth)
Undocumented in source. Be warned that the author may not have intended to support it.
luminance601
float luminance601()
Undocumented in source. Be warned that the author may not have intended to support it.
luminance709
float luminance709()
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
Color4f opAssign(Color4f c)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Color4f opBinary(float x)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Color4f opBinary(float x)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Color4f opBinary(float x)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Color4f opBinary(float x)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Color4f opBinary(Vector4f v)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Color4f opBinary(Vector4f v)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Color4f opBinary(Vector4f v)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Color4f opBinary(Vector4f v)
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(const(Color4f) c)
Undocumented in source. Be warned that the author may not have intended to support it.
toGamma
Color4f toGamma(float gamma)

Converts color from linear space to gamma space

toLinear
Color4f toLinear(float gamma)

Converts color from gamma space to linear space

Properties

clamped
Color4f clamped(float minv, float maxv)
Undocumented in source. Be warned that the author may not have intended to support it.
inverse
Color4f inverse [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

zero
Color4f zero()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

vec
Vector4f vec;
Undocumented in source.

Meta