BaseColor

Constructors

this
this(int hexColor, float alpha)

16進数のカラーコードで色を指定します.

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

RGBAで色を指定します.透明度は省略可能です.

this
this(V v)
Undocumented in source.

Members

Aliases

C
alias C = BaseColor!(T, Limit)
Undocumented in source.

Functions

hsb
C hsb(Hue hue, Saturation saturation, Value value)

色をHSBで指定します.

opAdd
C opAdd(C color)

色の加算を行います.

opCast
F opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
CastType opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opSub
C opSub(C color)

色の減算を行います.

Variables

a
T a;

Alpha Channel.

b
T b;

Blue Channel.

g
T g;

Green Channel.

limit
enum T limit;

Upper limit of each channel.

r
T r;

Red Channel.

Meta