#include <hsl.h>
|
std::string | toString (std::vector< double > const &values, bool opacity=true) const override |
| Print the HSL color to a CSS string.
|
|
void | spaceToProfile (std::vector< double > &output) const override |
| Convert the HSL color into sRGB components used in the sRGB icc profile.
|
|
void | profileToSpace (std::vector< double > &output) const override |
| Convert from sRGB icc values to HSL values.
|
|
std::string | toString (std::vector< double > const &values, bool opacity=true) const override |
| Print the RGB color to a CSS Hex code of 6 or 8 digits.
|
|
uint32_t | toRGBA (std::vector< double > const &values, double opacity=1.0) const override |
| Convert the color into an RGBA32 for use within Gdk rendering.
|
|
| AnySpace () |
|
bool | isValidData (std::vector< double > const &values) const |
| Return true if the given data would be valid for this color space.
|
|
virtual std::vector< Parser > | getParsers () const |
|
bool | convert (std::vector< double > &io, std::shared_ptr< AnySpace > to_space) const |
| In place conversion of a color object to the given space.
|
|
bool | profileToProfile (std::vector< double > &io, std::shared_ptr< AnySpace > to_space) const |
| Step two in coverting a color, convert it's profile to another profile (if needed)
|
|
virtual bool | overInk (std::vector< double > const &input) const |
|
bool | outOfGamut (std::vector< double > const &input, std::shared_ptr< AnySpace > to_space) const |
| Return true if the color would be out of gamut in the target color space.
|
|
Definition at line 18 of file hsl.h.
◆ HSL()
Inkscape::Colors::Space::HSL::HSL |
( |
| ) |
|
|
default |
◆ ~HSL()
Inkscape::Colors::Space::HSL::~HSL |
( |
| ) |
|
|
overridedefault |
◆ getIcon()
std::string const Inkscape::Colors::Space::HSL::getIcon |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getName()
std::string const Inkscape::Colors::Space::HSL::getName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getType()
Type Inkscape::Colors::Space::HSL::getType |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ profileToSpace()
void Inkscape::Colors::Space::HSL::profileToSpace |
( |
std::vector< double > & |
output | ) |
const |
|
overrideprotectedvirtual |
◆ spaceToProfile()
void Inkscape::Colors::Space::HSL::spaceToProfile |
( |
std::vector< double > & |
output | ) |
const |
|
overrideprotectedvirtual |
◆ toString()
std::string Inkscape::Colors::Space::HSL::toString |
( |
std::vector< double > const & |
values, |
|
|
bool |
opacity = true |
|
) |
| const |
|
overrideprotectedvirtual |
Print the HSL color to a CSS string.
- values - A vector of doubles for each channel in the HSL space
- opacity - True if the opacity should be included in the output.
Implements Inkscape::Colors::Space::AnySpace.
Definition at line 110 of file hsl.cpp.
◆ Inkscape::Colors::Color
Definition at line 29 of file hsl.h.
The documentation for this class was generated from the following files:
- /builds/inkscape/inkscape/src/colors/spaces/hsl.h
- /builds/inkscape/inkscape/src/colors/spaces/hsl.cpp