tida ~master (2021-10-06T18:27:09Z)
Home
Dub
Repo
Color.toGrayscaleNumber
tida
color
Color
Converts the color to black and white.
struct
Color
(T)
@
safe
nothrow pure inout
T
toGrayscaleNumber
(
)
if
(
isIntegral
!
T
||
isFloatingPoint
!
T
)
Meta
Source
See Implementation
tida
color
Color
aliases
Type
a
b
g
r
constructors
this
functions
isDark
isLight
opAssign
opBinary
to
toBytes
toGrayscale
toGrayscaleFloat
toGrayscaleNumber
manifest constants
Max
Min
properties
af
bf
gf
invertAlpha
inverted
rf
variables
alpha
blue
green
red
Converts the color to black and white.