Color4f

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

Constructors

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

CTor

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

CTor Expect that every component is in range 0.0 .. 1.0

this
this(Color4b col)

CTor

Members

Functions

asRGB
float[3] asRGB()

Returns RGB the color information as static array

asRGBA
float[4] asRGBA()

Returns the RGBA color information as static array

opEquals
bool opEquals(Color4f col)

opEquals: compares two Colors.

Mixins

__anonymous
mixin Colors!Color4f
Undocumented in source.

Variables

alpha
float alpha;
blue
float blue;
green
float green;

The color components

red
float red;

The color components

Meta

Authors

Randy Schuett (rswhite4@googlemail.com)