opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
color_hsla.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <iosfwd>
6
7namespace osc
8{
9 struct ColorHSLA final {
10
11 ColorHSLA() = default;
12 explicit ColorHSLA(const Color&);
13
14 constexpr ColorHSLA(float hue_, float saturation_, float lightness_, float alpha_) :
15 hue{hue_},
19 {}
20
21 friend bool operator==(const ColorHSLA&, const ColorHSLA&) = default;
22
23 explicit operator Color () const;
24
25 float hue{};
26 float saturation{};
27 float lightness{};
28 float alpha{};
29 };
30
31 std::ostream& operator<<(std::ostream&, const ColorHSLA&);
32}
Definition custom_decoration_generator.h:5
std::ostream & operator<<(std::ostream &, const Object &)
Rgba< float > Color
Definition color.h:11
constexpr U to(T &&value)
Definition conversion.h:56
Definition color_hsla.h:9
float lightness
Definition color_hsla.h:27
friend bool operator==(const ColorHSLA &, const ColorHSLA &)=default
constexpr ColorHSLA(float hue_, float saturation_, float lightness_, float alpha_)
Definition color_hsla.h:14
float saturation
Definition color_hsla.h:26
ColorHSLA(const Color &)
float alpha
Definition color_hsla.h:28
ColorHSLA()=default
float hue
Definition color_hsla.h:25