PdfColorCmyk class Null safety

Represents an CMYK color

Inheritance

Constructors

PdfColorCmyk(double cyan, double magenta, double yellow, double black, [double a = 1.0])
Creates a CMYK color
const
PdfColorCmyk.fromRgb(double r, double g, double b, [double a = 1.0])
Create a CMYK color from red ,green and blue components
const

Properties

alpha double
Opacity
final, inherited
analagous List<PdfColor>
Returns a list of analagous colors
read-only, inherited
black double
Black component
final
blue double
Blue component
final, inherited
complementary PdfColor
Get a complementary color with hue shifted by -120°
read-only, inherited
cyan double
Cyan component
final
green double
Green component
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
isDark bool
Determines whether the given PdfColor is dark.
read-only, inherited
isLight bool
Determines whether the given PdfColor is light.
read-only, inherited
luminance double
Get the luminance
read-only, inherited
magenta double
Magenta component
final
monochromatic List<PdfColor>
Get some similar colors
read-only, inherited
red double
Red component
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
splitcomplementary List<PdfColor>
Returns a list of complementary colors
read-only, inherited
tetradic List<PdfColor>
Returns a list of tetradic colors
read-only, inherited
triadic List<PdfColor>
Returns a list of triadic colors
read-only, inherited
yellow double
Yellow component
final

Methods

flatten({PdfColor background = const PdfColor(1, 1, 1)}) PdfColor
Apply the color transparency by updating the color values according to a background color.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
shade(double strength) PdfColor
Build a Material Color shade using the given strength. [...]
inherited
toCmyk() PdfColorCmyk
Convert this color to CMYK
override
toHex() String
Get an Hexadecimal representation of this color
inherited
toHsl() PdfColorHsl
Convert this color to HSL
inherited
toHsv() PdfColorHsv
Convert this color to HSV
inherited
toInt() int
Get the int32 representation of this color
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited