ggplotd.color.rgb

This module implements the RGB _color type.

Members

Enums

RGBColorSpace
enum RGBColorSpace

Enum of RGB color spaces.

RGBColorSpaceDefs
eponymoustemplate RGBColorSpaceDefs(F)
Undocumented in source.
isRGB
eponymoustemplate isRGB(T)

Detect whether T is an RGB color.

Functions

determinant
F determinant(F[3][3] m)
Undocumented in source. Be warned that the author may not have intended to support it.
gammaToLinear
T gammaToLinear(T v)
Undocumented in source. Be warned that the author may not have intended to support it.
inverse
F[3][3] inverse(F[3][3] m)
Undocumented in source. Be warned that the author may not have intended to support it.
linearToGamma
T linearToGamma(T v)
Undocumented in source. Be warned that the author may not have intended to support it.
linearTosRGB
T linearTosRGB(T s)
Undocumented in source. Be warned that the author may not have intended to support it.
multiply
F[3] multiply(F[3][3] m1, F[3] v)
Undocumented in source. Be warned that the author may not have intended to support it.
multiply
F[3][3] multiply(F[3][3] m1, F[3][3] m2)
Undocumented in source. Be warned that the author may not have intended to support it.
sRGBToLinear
T sRGBToLinear(T s)
Undocumented in source. Be warned that the author may not have intended to support it.
toGamma
T toGamma(T v)

Convert a value to gamma compressed space.

toGamma
auto toGamma(C color)

Convert a color to gamma space.

toGrayscale
T toGrayscale(T r, T g, T b)
Undocumented in source. Be warned that the author may not have intended to support it.
toGrayscale
T toGrayscale(T r, T g, T b)
Undocumented in source. Be warned that the author may not have intended to support it.
toLinear
T toLinear(T v)

Convert a value from gamma compressed space to linear.

toLinear
auto toLinear(C color)

Convert a color to linear space.

transpose
F[3][3] transpose(F[3][3] m)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

RGB
struct RGB(string components_, ComponentType_, bool linear_ = false, RGBColorSpace colorSpace_ = RGBColorSpace.sRGB)

An RGB color, parameterised with components, component type, and color space specification.

RGBColorSpaceDef
struct RGBColorSpaceDef(F)
Undocumented in source.

Templates

RGBColorSpaceMatrix
template RGBColorSpaceMatrix(RGBColorSpace cs, F)
Undocumented in source.
allIn
template allIn(string s, string chars)
Undocumented in source.
anyIn
template anyIn(string s, string chars)
Undocumented in source.
canFind
template canFind(string s, char c)
Undocumented in source.
defaultAlpha
template defaultAlpha(T)
Undocumented in source.
notIn
template notIn(string s, string chars)
Undocumented in source.

Meta

Authors

Manu Evans