The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
RGB.this
std
experimental
color
rgb
RGB
Construct a color from a luminance and optional alpha value.
this
(const(C)[] str)
this
(ComponentType r, ComponentType g, ComponentType b, ComponentType a)
this
(ComponentType l, ComponentType a)
struct
RGB
(string components_, ComponentType_, bool linear_ = false, RGBColorSpace colorSpace_ = RGBColorSpace.sRGB)
@
safe
pure nothrow @
nogc
this
(
ComponentType
l
,
ComponentType
a
=
defaultAlpha
!
ComponentType
)
if
(
isNumeric
!
ComponentType_
)
this
(ComponentType.IntType r, ComponentType.IntType g, ComponentType.IntType b, ComponentType.IntType a)
this
(ComponentType.IntType l, ComponentType.IntType a)
Meta
Source
See Implementation
std
experimental
color
rgb
RGB
aliases
ComponentType
constructors
this
functions
opBinary
opCast
opOpAssign
opUnary
properties
tristimulus
tristimulusWithAlpha
variables
colorSpace
colorSpaceDesc
components
hasAlpha
hasComponent
linear
Construct a color from a luminance and optional alpha value.