PdfColorHsl class Null safety

Represents an HSL color

Inheritance

Constructors

PdfColorHsl(double hue, double saturation, double lightness, [double alpha = 1.0])
Creates an HSL color
factory
PdfColorHsl.fromRgb(double red, double green, double blue, [double alpha = 1.0])
Creates an HSL color from red, green, and blue components
factory

Properties

alpha double
Opacity
final, inherited
analagous List<PdfColor>
Returns a list of analagous colors
read-only, inherited
blue double
Blue component
final, inherited
complementary PdfColor
Get a complementary color with hue shifted by -120°
read-only, inherited
green double
Green component
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
hue double
Hue component
final
isDark bool
Determines whether the given PdfColor is dark.
read-only, inherited
isLight bool
Determines whether the given PdfColor is light.
read-only, inherited
lightness double
Lightness component
final
luminance double
Get the luminance
read-only, inherited
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
saturation double
Saturation component
final
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

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
inherited
toHex() String
Get an Hexadecimal representation of this color
inherited
toHsl() PdfColorHsl
Convert this color to HSL
override
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