Color4b

Color4b defines a structure which contains 4 ubyte values, each for red, green, blue and alpha.

Constructors

this
this(ubyte red, ubyte green, ubyte blue, ubyte alpha)

CTor

this
this(uint hexValue)

CTor

this
this(Color4f col)

CTor

Members

Functions

asHex
uint asHex()

Returns the RGBA color information as hex value

asRGB
ubyte[3] asRGB()

Returns RGB the color information as static array

asRGBA
ubyte[4] asRGBA()

Returns the RGBA color information as static array

opEquals
bool opEquals(Color4b col)

opEquals: compares two Colors.

withTransparency
Color4b withTransparency(ubyte alpha)

Returns a copy of the current Color with a given transpareny.

Mixins

__anonymous
mixin Colors!Color4b
Undocumented in source.

Variables

alpha
ubyte alpha;
blue
ubyte blue;
green
ubyte green;

The color components

red
ubyte red;

The color components

Meta

Authors

Randy Schuett (rswhite4@googlemail.com)