nudsfml v0.0.10-alpha (2023-02-09T04:48:03Z)
Dub
Repo
Color
nudsfml
graphics
color
Undocumented in source.
struct
Color {
ubyte
r
;
ubyte
g
;
ubyte
b
;
ubyte
a
;
static immutable
auto
Black
;
static immutable
auto
White
;
static immutable
auto
Red
;
static immutable
auto
Green
;
static immutable
auto
Blue
;
static immutable
auto
Yellow
;
static immutable
auto
Magenta
;
static immutable
auto
Cyan
;
static immutable
auto
Transparent
;
string
toString
();
Color
opBinary
(Color otherColor);
Color
opBinary
(E num);
Color
opOpAssign
(Color otherColor);
Color
opOpAssign
(E num);
bool
opEquals
(Color otherColor);
}
Members
Functions
opBinary
Color
opBinary
(Color otherColor)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Color
opBinary
(E num)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool
opEquals
(Color otherColor)
Overload of the
==
and
!=
operators.
opOpAssign
Color
opOpAssign
(Color otherColor)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
Color
opOpAssign
(E num)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string
toString
()
Undocumented in source. Be warned that the author may not have intended to support it.
Static variables
Black
auto
Black
;
Undocumented in source.
Blue
auto
Blue
;
Undocumented in source.
Cyan
auto
Cyan
;
Undocumented in source.
Green
auto
Green
;
Undocumented in source.
Magenta
auto
Magenta
;
Undocumented in source.
Red
auto
Red
;
Undocumented in source.
Transparent
auto
Transparent
;
Undocumented in source.
White
auto
White
;
Undocumented in source.
Yellow
auto
Yellow
;
Undocumented in source.
Variables
a
ubyte
a
;
Undocumented in source.
b
ubyte
b
;
Undocumented in source.
g
ubyte
g
;
Undocumented in source.
r
ubyte
r
;
Undocumented in source.
Meta
Source
See Implementation
nudsfml
graphics
color
functions
fromColor
structs
Color