dgame ~master (2017-03-31T06:11:13Z)
Home
Dub
Repo
Color4f.this
Dgame
Graphic
Color
Color4f
CTor Expect that every component is in range 0.0 .. 1.0
this
(
ubyte
red
,
ubyte
green
,
ubyte
blue
,
ubyte
alpha
=
255
)
this
(
float
red
,
float
green
,
float
blue
,
float
alpha
=
1
)
struct
Color4f
@
nogc
this
pure nothrow
(
float
red
,
float
green
,
float
blue
,
float
alpha
= 1
)
in { assert (red >= 0f && red <= 1f); assert (green >= 0f && green <= 1f); assert (blue >= 0f && blue <= 1f); assert (alpha >= 0f && alpha <= 1f); }
this
(
ref
const
Color4b
col
)
Meta
Source
See Implementation
Dgame
Graphic
Color
Color4f
constructors
this
functions
asRGB
asRGBA
opEquals
static variables
Black
Blue
Cyan
Gray
Green
Magenta
Red
White
Yellow
variables
alpha
blue
green
red
CTor Expect that every component is in range 0.0 .. 1.0