Pixel

The storage struct for a color.

Constructors

this
this(Value[] values, const ColorSpace* colorSpace)
this(real[] values, const ColorSpace* colorSpace)
this(size_t size, const 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(const Pixel!V other)
opBinary
Pixel!V opBinary(const real other)
opBinary
Pixel!V opBinary(const Pixel!V other)
opOpAssign
void opOpAssign(const real other)
opOpAssign
void opOpAssign(const 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