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:
r The red channel.
g The green channel.
b The blue channel.
a The alpha channel.
Returns:
The paint.
public Paint paintFromName(string name);
Gets paint from a color name.
Parameters:
name The name of the color.
Returns:
The paint.
Generated by venom - Poison Engine's Documentation Generator
Module for paint.
Authors:
Jacob JensenLicense:
https://github.com/PoisonEngine/poison-ui/blob/master/LICENSEpublic 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:
r | The red channel. |
g | The green channel. |
b | The blue channel. |
a | The alpha channel. |
Returns:
The paint.public Paint paintFromName(string name);
Gets paint from a color name.
Parameters:
name | The name of the color. |