color ~master (2020-04-14T12:21:13Z)
Home
Dub
Repo
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
ParentColor
constructors
this
functions
opBinary
opCast
opEquals
opOpAssign
opUnary
properties
tristimulus
tristimulusWithAlpha
static functions
convertColorImpl
templates
Components
variables
colorSpace
colorSpaceDesc
components
hasAlpha
hasComponent
linear
Construct a color from a luminance and optional alpha value.