color ~master (2020-04-14T12:21:13Z)
Home
Dub
Repo
toGrayscale
std
experimental
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
(
is
(
T
==
NormalizedInt
!
U
,
U
)
)
Meta
Source
See Implementation
std
experimental
color
rgb
enums
isRGB
functions
toGamma
toGrayscale
toLinear
structs
RGB
templates
allIn
anyIn
canFind
defaultAlpha
notIn