Pixel

The storage struct for a color.

Constructors

this
this(Value[] values, ColorSpace* colorSpace)
this(real[] values, ColorSpace* colorSpace)
this(size_t size, ColorSpace* colorSpace)

Alias This

values

Members

Aliases

Value
alias Value = V

The type used to store individual values for a color

Functions

clear
void clear()

Clear all the color values to 0

opAssign
void opAssign(Pixel!V other)
opBinary
Pixel!V opBinary(real other)
opBinary
Pixel!V opBinary(Pixel!V other)
opOpAssign
void opOpAssign(real other)
opOpAssign
void opOpAssign(Pixel!V other)

Properties

dup
auto dup [@property getter]

Return a duplicate color in the same color space

Variables

colorSpace
ColorSpace* colorSpace;

The color space used for operations with the color

values
Value[] values;

The values of the color

Meta