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)
this
(ComponentType.IntType r, ComponentType.IntType g, ComponentType.IntType b, ComponentType.IntType a)
this
(ComponentType.IntType l, ComponentType.IntType a)
struct
RGB
(string components_, ComponentType_, bool linear_ = false, RGBColorSpace colorSpace_ = RGBColorSpace.sRGB)
@
safe
pure nothrow @
nogc
static if
(
!isFloatingPoint!ComponentType_
)
this
(
ComponentType.IntType
l
,
ComponentType.IntType
a
=
defaultAlpha
!(
ComponentType.IntType
)
)
if
(
isNumeric
!
ComponentType_
)
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.