The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
Color.this
arsd
color
Color
Constructs a color from a
ColorF
(floating-point)
this
(int red, int green, int blue, int alpha)
this
(ubyte[] components)
this
(float r, float g, float b, float a)
this
(ColorF colorF)
struct
Color
@
safe
nothrow pure @
nogc
this
(
const
ColorF
colorF
)
Meta
Source
See Implementation
History
Added December 20, 2023
arsd
color
Color
constructors
this
enums
ColorBlendMixinStr
functions
alphaBlend
asUint
asWindowsColorRef
opCast
toBW
toCssString
toRgbaHexString
toString
static functions
black
blue
brown
fromHsl
fromIntegers
fromNameString
fromString
fromWindowsColorRef
gray
green
magenta
purple
red
teal
transparent
white
yellow
variables
components
Constructs a color from a ColorF (floating-point)