CmyColor Class

Version 1.0.2
.NET Framework 4.7
Namespace Skybrud.Colors
Assembly Skybrud.Colors.dll
Visibility Public
Interfaces IColor
Inheritance Object

Class representing a color in the CMY color model. CMY stands for cyan, magenta, and yellow. CMY colors are closely related to CmykColor.

public class CmyColor : IColor { }

Properties

Type Name Summary
Double C

Gets the amount of cyan in the color.

Double M

Gets the amount of magenta in the color.

Double Y

Gets the amount of yellow in the color.

Methods

Darken(float) (virtual)

Increases the darkness of the color based on the specified percent.

Lighten(float) (virtual)

Increases the lightness of the color based on the specified percent.

ToCmy() (virtual)

Returns a new instance of the current CMY color.

ToCmyk() (virtual)

Converts the CMY color to an instance of CmykColor.

ToCss() (virtual)

Returns the CSS representation of the color. Since the CSS specification doesn't support CMY colors, this method will simply return null.

ToHex() (virtual)

Returns the HEX representation of the color.

ToHsl() (virtual)

Converts the CMY color to an instance of HslColor.

ToRgb() (virtual)

Converts the CMY color to an instance of RgbColor.

ToString() (virtual)

Returns a string representation of the CMY color.