4#ifndef FTXUI_SCREEN_COLOR_HPP
5#define FTXUI_SCREEN_COLOR_HPP
33 Color(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha = 255);
34 static Color RGB(uint8_t red, uint8_t green, uint8_t blue);
35 static Color HSV(uint8_t hue, uint8_t saturation, uint8_t value);
36 static Color RGBA(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha);
319 std::string
Print(
bool is_background_color)
const;
323 enum class ColorType : uint8_t {
329 ColorType type_ = ColorType::Palette1;
340Color operator""_rgb(
unsigned long long int combined);
Color()
Construit une couleur transparente.
static Color HSV(uint8_t hue, uint8_t saturation, uint8_t value)
Construit une couleur à partir de sa représentation HSV. https://en.wikipedia.org/wiki/HSL_and_HSV.
static Color RGB(uint8_t red, uint8_t green, uint8_t blue)
Construit une couleur à partir de sa représentation RGB. https://en.wikipedia.org/wiki/RGB_color_mode...
static Color RGBA(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha)
Construit une couleur à partir de sa représentation RGBA. https://en.wikipedia.org/wiki/RGB_color_mod...
static Color Blend(const Color &lhs, const Color &rhs)
Mélange deux couleurs en utilisant le canal alpha.
bool operator!=(const Color &rhs) const
bool operator==(const Color &rhs) const
std::string Print(bool is_background_color) const
static Color Interpolate(float t, const Color &a, const Color &b)
static Color HSVA(uint8_t hue, uint8_t saturation, uint8_t value, uint8_t alpha)
Construit une couleur à partir de sa représentation HSV. https://en.wikipedia.org/wiki/HSL_and_HSV.
Color est une classe qui représente une couleur dans l'interface utilisateur du terminal.
L'espace de noms FTXUI ftxui::
L'espace de noms FTXUI ftxui::literals::