ColorCMYK

The CMY(K) color model describes a color space with subtractive color composition as it is used for the color printing process, e.g. used by ink or laser printers. Each color is described by the color components cyan (C), magenta (M) and yellow (Y). The additional component black (K) is used for better gray and black reproduction.

Note: This class doesn't use ICC or ICM profiles for the converson of CMYK to RGB.

Constructors

this
this()
this
this(double cyan, double magenta, double yellow, double black)

Create a CMYK Color from the specified doubles.

Members

Functions

black
double black()

The value for black.

black
void black(double black)

The value for black.

cyan
void cyan(double cyan)
double cyan()

The value for cyan.

magenta
void magenta(double magenta)
double magenta()

The value for magenta.

yellow
void yellow(double yellow)
double yellow()

The value for yellow.

Inherited Members

From Color

packet
PixelPacket* packet;
Undocumented in source.
pixelPacket
PixelPacket pixelPacket()
Undocumented in source. Be warned that the author may not have intended to support it.
pixelPacket
void pixelPacket(PixelPacket packet)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Object obj)
toString
string toString()

Returns the value as a hex string.

opCast
Object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
T opCast()

Support casting between different colors. You can also use std.conv.to

redQuantum
void redQuantum(Quantum red)
Quantum redQuantum()

The value for red in the range [0 .. QuantumRange]

greenQuantum
void greenQuantum(Quantum green)
Quantum greenQuantum()

The value for green in the range [0 .. QuantumRange]

blueQuantum
void blueQuantum(Quantum blue)
Quantum blueQuantum()

The value for blue in the range [0 .. QuantumRange]

opacityByte
void opacityByte(ubyte opacity)
ubyte opacityByte()

The opacity as a byte. [0 .. 255]

opacityQuantum
void opacityQuantum(Quantum opacity)
Quantum opacityQuantum()

The value for opacity in the range [0 .. QuantumRange]

opacity
void opacity(double opacity)
double opacity()

The value for opacity as a double in the range [0.0 .. 1.0]

intensity
double intensity()

The intensity of this color.

clone
Color clone()

Create a copy of this Color.

name
string name()

Returns the name of the color or the value as a hex string.

scaleDoubleToQuantum
Quantum scaleDoubleToQuantum(double value)
Undocumented in source. Be warned that the author may not have intended to support it.
scaleQuantumToDouble
double scaleQuantumToDouble(Quantum value)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta