NVGColor

NanoVega RGBA color

struct NVGColor {
enum transparent;
enum k8orange;
enum aliceblue;
enum antiquewhite;
enum aqua;
enum aquamarine;
enum azure;
enum beige;
enum bisque;
enum black;
enum blanchedalmond;
enum blue;
enum blueviolet;
enum brown;
enum burlywood;
enum cadetblue;
enum chartreuse;
enum chocolate;
enum coral;
enum cornflowerblue;
enum cornsilk;
enum crimson;
enum cyan;
enum darkblue;
enum darkcyan;
enum darkgoldenrod;
enum darkgray;
enum darkgreen;
enum darkgrey;
enum darkkhaki;
enum darkmagenta;
enum darkolivegreen;
enum darkorange;
enum darkorchid;
enum darkred;
enum darksalmon;
enum darkseagreen;
enum darkslateblue;
enum darkslategray;
enum darkslategrey;
enum darkturquoise;
enum darkviolet;
enum deeppink;
enum deepskyblue;
enum dimgray;
enum dimgrey;
enum dodgerblue;
enum firebrick;
enum floralwhite;
enum forestgreen;
enum fuchsia;
enum gainsboro;
enum ghostwhite;
enum gold;
enum goldenrod;
enum gray;
enum green;
enum greenyellow;
enum grey;
enum honeydew;
enum hotpink;
enum indianred;
enum indigo;
enum ivory;
enum khaki;
enum lavender;
enum lavenderblush;
enum lawngreen;
enum lemonchiffon;
enum lightblue;
enum lightcoral;
enum lightcyan;
enum lightgoldenrodyellow;
enum lightgray;
enum lightgreen;
enum lightgrey;
enum lightpink;
enum lightsalmon;
enum lightseagreen;
enum lightskyblue;
enum lightslategray;
enum lightslategrey;
enum lightsteelblue;
enum lightyellow;
enum lime;
enum limegreen;
enum linen;
enum magenta;
enum maroon;
enum mediumaquamarine;
enum mediumblue;
enum mediumorchid;
enum mediumpurple;
enum mediumseagreen;
enum mediumslateblue;
enum mediumspringgreen;
enum mediumturquoise;
enum mediumvioletred;
enum midnightblue;
enum mintcream;
enum mistyrose;
enum moccasin;
enum navajowhite;
enum navy;
enum oldlace;
enum olive;
enum olivedrab;
enum orange;
enum orangered;
enum orchid;
enum palegoldenrod;
enum palegreen;
enum paleturquoise;
enum palevioletred;
enum papayawhip;
enum peachpuff;
enum peru;
enum pink;
enum plum;
enum powderblue;
enum purple;
enum red;
enum rosybrown;
enum royalblue;
enum saddlebrown;
enum salmon;
enum sandybrown;
enum seagreen;
enum seashell;
enum sienna;
enum silver;
enum skyblue;
enum slateblue;
enum slategray;
enum slategrey;
enum snow;
enum springgreen;
enum steelblue;
enum tan;
enum teal;
enum thistle;
enum tomato;
enum turquoise;
enum violet;
enum wheat;
enum white;
enum whitesmoke;
enum yellow;
enum yellowgreen;
}

Constructors

this
this(ubyte ar, ubyte ag, ubyte ab, ubyte aa)
this
this(float ar, float ag, float ab, float aa)
this
this(uint c)

AABBGGRR (same format as little-endian RGBA image, coincidentally, the same as arsd.color)

this
this(const(char)[] srgb)

Supports: "#rgb", "#rrggbb", "#argb", "#aarrggbb"

this
this(Color c)

Members

Properties

asUint
uint asUint [@property getter]

AABBGGRR (same format as little-endian RGBA image, coincidentally, the same as arsd.color)

asUintARGB
uint asUintARGB [@property getter]

AARRGGBB

isOpaque
bool isOpaque [@property getter]

Is this color completely opaque?

isTransparent
bool isTransparent [@property getter]

Is this color completely transparent?

Static functions

fromUint
NVGColor fromUint(uint c)

AABBGGRR (same format as little-endian RGBA image, coincidentally, the same as arsd.color)

fromUintARGB
NVGColor fromUintARGB(uint c)

AARRGGBB

Variables

rgba
float[4] rgba;

default color is transparent (a=1 is opaque)

See Also

Meta