Poison-ui

A cross-platform desktop/mobile UI engine written in D using dsfml

View project on GitHub

Dub version

poison.ui.paint

Source

Module for paint.

Authors:

  Jacob Jensen

License:

  https://github.com/PoisonEngine/poison-ui/blob/master/LICENSE

public:















































































































































































































































































































public struct Paint


        public:



Paint structure.


public ubyte r;


The red channel.


public ubyte g;


The green channel.


public ubyte b;


The blue channel.


public ubyte a;


The alpha channel.


public @property Color sfmlColor();


Gets the low-level sfml color equivalent to the paint.


public Paint paintFromRGBA(ubyte r, ubyte g, ubyte b, ubyte a = 0xff);


Gets a painting from RGBA.

Parameters:

rThe red channel.
gThe green channel.
bThe blue channel.
aThe alpha channel.

Returns:

  The paint.

public Paint paintFromName(string name);


Gets paint from a color name.

Parameters:

nameThe name of the color.

Returns:

  The paint.

public Paint white = paintFromRGBA(0xff, 0xff, 0xff);


White paint.


public Paint black = paintFromRGBA(0x00, 0x00, 0x00);


Black paint.


public Paint transparent = paintFromRGBA(0x00, 0x00, 0x00, 0x00);


Transparent paint.


public Paint red = paintFromRGBA(0xff, 0x00, 0x00);


Red paint.


public Paint green = paintFromRGBA(0x00, 0xff, 0x00);


Green paint.


public Paint blue = paintFromRGBA(0x00, 0x00, 0xff);


Blue paint.


public Paint aliceBlue = paintFromRGBA(0xf0, 0xf8, 0xff);


AliceBlue paint.


public Paint antiqueWhite = paintFromRGBA(0xfa, 0xeb, 0xd7);


AntiqueWhite paint.


public Paint aqua = paintFromRGBA(0x00, 0xff, 0xff);


Aqua paint.


public Paint aquamarine = paintFromRGBA(0x7f, 0xff, 0xd4);


Aquamarine paint.


public Paint azure = paintFromRGBA(0xf0, 0xff, 0xff);


Azure paint.


public Paint beige = paintFromRGBA(0xf5, 0xf5, 0xdc);


Beige paint.


public Paint bisque = paintFromRGBA(0xff, 0xe4, 0xc4);


Bisque paint.


public Paint blanchedAlmond = paintFromRGBA(0xff, 0xeb, 0xcd);


BlanchedAlmond paint.


public Paint blueViolet = paintFromRGBA(0x8a, 0x2b, 0xe2);


BlueViolet paint.


public Paint brown = paintFromRGBA(0xa5, 0x2a, 0x2a);


Brown paint.


public Paint burlyWood = paintFromRGBA(0xde, 0xb8, 0x87);


BurlyWood paint.


public Paint cadetBlue = paintFromRGBA(0x5f, 0x9e, 0xa0);


CadetBlue paint.


public Paint chartreuse = paintFromRGBA(0x7f, 0xff, 0x00);


Chartreuse paint.


public Paint chocolate = paintFromRGBA(0xd2, 0x69, 0x1e);


Chocolate paint.


public Paint coral = paintFromRGBA(0xff, 0x7f, 0x50);


Coral paint.


public Paint cornflowerBlue = paintFromRGBA(0x64, 0x95, 0xed);


CornflowerBlue paint.


public Paint cornsilk = paintFromRGBA(0xff, 0xf8, 0xdc);


Cornsilk paint.


public Paint crimson = paintFromRGBA(0xdc, 0x14, 0x3c);


Crimson paint.


public Paint cyan = paintFromRGBA(0x00, 0xff, 0xff);


Cyan paint.


public Paint darkBlue = paintFromRGBA(0x00, 0x00, 0x8b);


DarkBlue paint.


public Paint darkCyan = paintFromRGBA(0x00, 0x8b, 0x8b);


DarkCyan paint.


public Paint darkGoldenrod = paintFromRGBA(0xb8, 0x86, 0x0b);


DarkGoldenrod paint.


public Paint darkGrey = paintFromRGBA(0xa9, 0xa9, 0xa9);


DarkGrey paint.


public Paint darkGray = paintFromRGBA(0xa9, 0xa9, 0xa9);


DarkGray paint.


public Paint darkGreen = paintFromRGBA(0x00, 0x64, 0x00);


DarkGreen paint.


public Paint darkKhaki = paintFromRGBA(0xbd, 0xb7, 0x6b);


DarkKhaki paint.


public Paint darkMagenta = paintFromRGBA(0x8b, 0x00, 0x8b);


DarkMagenta paint.


public Paint darkOliveGreen = paintFromRGBA(0x55, 0x6b, 0x2f);


DarkOliveGreen paint.


public Paint darkOrange = paintFromRGBA(0xff, 0x8c, 0x00);


DarkOrange paint.


public Paint darkOrchid = paintFromRGBA(0x99, 0x32, 0xcc);


DarkOrchid paint.


public Paint darkRed = paintFromRGBA(0x8b, 0x00, 0x00);


DarkRed paint.


public Paint darkSalmon = paintFromRGBA(0xe9, 0x96, 0x7a);


DarkSalmon paint.


public Paint darkSeaGreen = paintFromRGBA(0x8f, 0xbc, 0x8f);


DarkSeaGreen paint.


public Paint darkSlateBlue = paintFromRGBA(0x48, 0x3d, 0x8b);


DarkSlateBlue paint.


public Paint darkSlateGray = paintFromRGBA(0x2f, 0x4f, 0x4f);


DarkSlateGray paint.


public Paint darkSlateGrey = paintFromRGBA(0x2f, 0x4f, 0x4f);


DarkSlateGrey paint.


public Paint darkTurquoise = paintFromRGBA(0x00, 0xce, 0xd1);


DarkTurquoise paint.


public Paint darkViolet = paintFromRGBA(0x94, 0x00, 0xd3);


DarkViolet paint.


public Paint deepPink = paintFromRGBA(0xff, 0x14, 0x93);


DeepPink paint.


public Paint deepSkyBlue = paintFromRGBA(0x00, 0xbf, 0xff);


DeepSkyBlue paint.


public Paint dimGray = paintFromRGBA(0x69, 0x69, 0x69);


DimGray paint.


public Paint dimGrey = paintFromRGBA(0x69, 0x69, 0x69);


DimGrey paint.


public Paint dodgerBlue = paintFromRGBA(0x1e, 0x90, 0xff);


DodgerBlue paint.


public Paint fireBrick = paintFromRGBA(0xb2, 0x22, 0x22);


FireBrick paint.


public Paint floralWhite = paintFromRGBA(0xff, 0xfa, 0xf0);


FloralWhite paint.


public Paint forestGreen = paintFromRGBA(0x22, 0x8b, 0x22);


ForestGreen paint.


public Paint fuchsia = paintFromRGBA(0xff, 0x00, 0xff);


Fuchsia paint.


public Paint gainsboro = paintFromRGBA(0xdc, 0xdc, 0xdc);


Gainsboro paint.


public Paint ghostWhite = paintFromRGBA(0xf8, 0xf8, 0xff);


GhostWhite paint.


public Paint gold = paintFromRGBA(0xff, 0xd7, 0x00);


Gold paint.


public Paint goldenrod = paintFromRGBA(0xda, 0xa5, 0x20);


Goldenrod paint.


public Paint gray = paintFromRGBA(0x80, 0x80, 0x80);


Gray paint.


public Paint grey = paintFromRGBA(0x80, 0x80, 0x80);


Grey paint.


public Paint greenYellow = paintFromRGBA(0xad, 0xff, 0x2f);


GreenYellow paint.


public Paint honeydew = paintFromRGBA(0xf0, 0xff, 0xf0);


Honeydew paint.


public Paint hotPink = paintFromRGBA(0xff, 0x69, 0xb4);


HotPink paint.


public Paint indianRed = paintFromRGBA(0xcd, 0x5c, 0x5c);


IndianRed paint.


public Paint indigo = paintFromRGBA(0x4b, 0x00, 0x82);


Indigo paint.


public Paint ivory = paintFromRGBA(0xff, 0xff, 0xf0);


Ivory paint.


public Paint khaki = paintFromRGBA(0xf0, 0xe6, 0x8c);


Khaki paint.


public Paint lavender = paintFromRGBA(0xe6, 0xe6, 0xfa);


Lavender paint.


public Paint lavenderBlush = paintFromRGBA(0xff, 0xf0, 0xf5);


LavenderBlush paint.


public Paint lawnGreen = paintFromRGBA(0x7c, 0xfc, 0x00);


LawnGreen paint.


public Paint lemonChiffon = paintFromRGBA(0xff, 0xfa, 0xcd);


LemonChiffon paint.


public Paint lightBlue = paintFromRGBA(0xad, 0xd8, 0xe6);


LightBlue paint.


public Paint lightCoral = paintFromRGBA(0xf0, 0x80, 0x80);


LightCoral paint.


public Paint lightCyan = paintFromRGBA(0xe0, 0xff, 0xff);


LightCyan paint.


public Paint lightGoldenrodYellow = paintFromRGBA(0xfa, 0xfa, 0xd2);


LightGoldenrodYellow paint.


public Paint lightGreen = paintFromRGBA(0x90, 0xee, 0x90);


LightGreen paint.


public Paint lightGray = paintFromRGBA(0xd3, 0xd3, 0xd3);


LightGray paint.


public Paint lightGrey = paintFromRGBA(0xd3, 0xd3, 0xd3);


LightGrey paint.


public Paint lightPink = paintFromRGBA(0xff, 0xb6, 0xc1);


LightPink paint.


public Paint lightSalmon = paintFromRGBA(0xff, 0xa0, 0x7a);


LightSalmon paint.


public Paint lightSeaGreen = paintFromRGBA(0x20, 0xb2, 0xaa);


LightSeaGreen paint.


public Paint lightSkyBlue = paintFromRGBA(0x87, 0xce, 0xfa);


LightSkyBlue paint.


public Paint lightSlateGray = paintFromRGBA(0x77, 0x88, 0x99);


LightSlateGray paint.


public Paint lightSlateGrey = paintFromRGBA(0x77, 0x88, 0x99);


LightSlateGrey paint.


public Paint lightSteelBlue = paintFromRGBA(0xb0, 0xc4, 0xde);


LightSteelBlue paint.


public Paint lightYellow = paintFromRGBA(0xff, 0xff, 0xe0);


LightYellow paint.


public Paint lime = paintFromRGBA(0x00, 0xff, 0x00);


Lime paint.


public Paint limeGreen = paintFromRGBA(0x32, 0xcd, 0x32);


LimeGreen paint.


public Paint linen = paintFromRGBA(0xfa, 0xf0, 0xe6);


Linen paint.


public Paint magenta = paintFromRGBA(0xff, 0x00, 0xff);


Magenta paint.


public Paint maroon = paintFromRGBA(0x80, 0x00, 0x00);


Maroon paint.


public Paint mediumAquamarine = paintFromRGBA(0x66, 0xcd, 0xaa);


MediumAquamarine paint.


public Paint mediumBlue = paintFromRGBA(0x00, 0x00, 0xcd);


MediumBlue paint.


public Paint mediumOrchid = paintFromRGBA(0xba, 0x55, 0xd3);


MediumOrchid paint.


public Paint mediumPurple = paintFromRGBA(0x93, 0x70, 0xdb);


MediumPurple paint.


public Paint mediumSeaGreen = paintFromRGBA(0x3c, 0xb3, 0x71);


MediumSeaGreen paint.


public Paint mediumSlateBlue = paintFromRGBA(0x7b, 0x68, 0xee);


MediumSlateBlue paint.


public Paint mediumSpringGreen = paintFromRGBA(0x00, 0xfa, 0x9a);


MediumSpringGreen paint.


public Paint mediumTurquoise = paintFromRGBA(0x48, 0xd1, 0xcc);


MediumTurquoise paint.


public Paint mediumVioletRed = paintFromRGBA(0xc7, 0x15, 0x85);


MediumVioletRed paint.


public Paint midnightBlue = paintFromRGBA(0x19, 0x19, 0x70);


MidnightBlue paint.


public Paint mintCream = paintFromRGBA(0xf5, 0xff, 0xfa);


MintCream paint.


public Paint mistyRose = paintFromRGBA(0xff, 0xe4, 0xe1);


MistyRose paint.


public Paint moccasin = paintFromRGBA(0xff, 0xe4, 0xb5);


Moccasin paint.


public Paint navajoWhite = paintFromRGBA(0xff, 0xde, 0xad);


NavajoWhite paint.


public Paint navy = paintFromRGBA(0x00, 0x00, 0x80);


Navy paint.


public Paint oldLace = paintFromRGBA(0xfd, 0xf5, 0xe6);


OldLace paint.


public Paint olive = paintFromRGBA(0x80, 0x80, 0x00);


Olive paint.


public Paint oliveDrab = paintFromRGBA(0x6b, 0x8e, 0x23);


OliveDrab paint.


public Paint orange = paintFromRGBA(0xff, 0xa5, 0x00);


Orange paint.


public Paint orangeRed = paintFromRGBA(0xff, 0x45, 0x00);


OrangeRed paint.


public Paint orchid = paintFromRGBA(0xda, 0x70, 0xd6);


Orchid paint.


public Paint paleGoldenrod = paintFromRGBA(0xee, 0xe8, 0xaa);


PaleGoldenrod paint.


public Paint paleGreen = paintFromRGBA(0x98, 0xfb, 0x98);


PaleGreen paint.


public Paint paleTurquoise = paintFromRGBA(0xaf, 0xee, 0xee);


PaleTurquoise paint.


public Paint paleVioletRed = paintFromRGBA(0xdb, 0x70, 0x93);


PaleVioletRed paint.


public Paint papayaWhip = paintFromRGBA(0xff, 0xef, 0xd5);


PapayaWhip paint.


public Paint peachPuff = paintFromRGBA(0xff, 0xda, 0xb9);


PeachPuff paint.


public Paint peru = paintFromRGBA(0xcd, 0x85, 0x3f);


Peru paint.


public Paint pink = paintFromRGBA(0xff, 0xc0, 0xcb);


Pink paint.


public Paint plum = paintFromRGBA(0xdd, 0xa0, 0xdd);


Plum paint.


public Paint powderBlue = paintFromRGBA(0xb0, 0xe0, 0xe6);


PowderBlue paint.


public Paint purple = paintFromRGBA(0x80, 0x00, 0x80);


Purple paint.


public Paint rosyBrown = paintFromRGBA(0xbc, 0x8f, 0x8f);


RosyBrown paint.


public Paint royalBlue = paintFromRGBA(0x41, 0x69, 0xe1);


RoyalBlue paint.


public Paint saddleBrown = paintFromRGBA(0x8b, 0x45, 0x13);


SaddleBrown paint.


public Paint salmon = paintFromRGBA(0xfa, 0x80, 0x72);


Salmon paint.


public Paint sandyBrown = paintFromRGBA(0xf4, 0xa4, 0x60);


SandyBrown paint.


public Paint seaGreen = paintFromRGBA(0x2e, 0x8b, 0x57);


SeaGreen paint.


public Paint seashell = paintFromRGBA(0xff, 0xf5, 0xee);


Seashell paint.


public Paint sienna = paintFromRGBA(0xa0, 0x52, 0x2d);


Sienna paint.


public Paint silver = paintFromRGBA(0xc0, 0xc0, 0xc0);


Silver paint.


public Paint skyBlue = paintFromRGBA(0x87, 0xce, 0xeb);


SkyBlue paint.


public Paint slateBlue = paintFromRGBA(0x6a, 0x5a, 0xcd);


SlateBlue paint.


public Paint slateGray = paintFromRGBA(0x70, 0x80, 0x90);


SlateGray paint.


public Paint slateGrey = paintFromRGBA(0x70, 0x80, 0x90);


SlateGrey paint.


public Paint snow = paintFromRGBA(0xff, 0xfa, 0xfa);


Snow paint.


public Paint springGreen = paintFromRGBA(0x00, 0xff, 0x7f);


SpringGreen paint.


public Paint steelBlue = paintFromRGBA(0x46, 0x82, 0xb4);


SteelBlue paint.


public Paint tan = paintFromRGBA(0xd2, 0xb4, 0x8c);


Tan paint.


public Paint teal = paintFromRGBA(0x00, 0x80, 0x80);


Teal paint.


public Paint thistle = paintFromRGBA(0xd8, 0xbf, 0xd8);


Thistle paint.


public Paint tomato = paintFromRGBA(0xff, 0x63, 0x47);


Tomato paint.


public Paint turquoise = paintFromRGBA(0x40, 0xe0, 0xd0);


Turquoise paint.


public Paint violet = paintFromRGBA(0xee, 0x82, 0xee);


Violet paint.


public Paint wheat = paintFromRGBA(0xf5, 0xde, 0xb3);


Wheat paint.


public Paint whiteSmoke = paintFromRGBA(0xf5, 0xf5, 0xf5);


WhiteSmoke paint.


public Paint yellow = paintFromRGBA(0xff, 0xff, 0x00);


Yellow paint.


public Paint yellowGreen = paintFromRGBA(0x9a, 0xcd, 0x32);


YellowGreen paint.


Generated by venom - Poison Engine's Documentation Generator