ggplotd v0.4.13 (2016-02-19T19:08:02Z)
Dub
Repo
toGrayscale
ggplotd
color
rgb
Undocumented in source. Be warned that the author may not have intended to support it.
T
toGrayscale
(T r, T g, T b)
T
toGrayscale
(T r, T g, T b)
package @
safe
pure nothrow @
nogc
pure
T
toGrayscale
(
bool
linear
RGBColorSpace
colorSpace
=
RGBColorSpace.sRGB
T
)
(
T
r
,
T
g
,
T
b
)
if
(
isIntegral
!
T
)
Meta
Source
See Implementation
ggplotd
color
rgb
enums
RGBColorSpace
RGBColorSpaceDefs
isRGB
functions
determinant
gammaToLinear
inverse
linearToGamma
linearTosRGB
multiply
sRGBToLinear
toGamma
toGrayscale
toLinear
transpose
structs
RGB
RGBColorSpaceDef
templates
RGBColorSpaceMatrix
allIn
anyIn
canFind
defaultAlpha
notIn