12#ifndef __CODAC_COLORS_H__
13#define __CODAC_COLORS_H__
50 const std::string
rgb2hex(
rgb rgb_value,
const char* prefix =
"#");
FixPoint of a separator The fixpoint of a separator is computed by calling the "::"separate function ...
Definition codac_capd_helpers.h:9
hsv rgb2hsv(rgb rgb_value)
Converts RGB to HSV.
const std::string rgb2hex(rgb rgb_value, const char *prefix="#")
Represents an RGB value in a HTML standard.
rgb make_rgb(int r, int g, int b, int alpha=255)
Makes an RGV value from integers.
hsv make_hsv(int h, int s, int v, int alpha=100)
Makes an HSV value from integers.
rgb hsv2rgb(hsv hsv_value)
Converts HSV to RGB.
Represents an HSV value.
Definition codac_colors.h:36
float alpha
opacity, value between 0. (transparent) and 1. (opaque)
Definition codac_colors.h:40
float h
hue, angle value in degrees between 0. and 360.
Definition codac_colors.h:37
float v
value (lightness), a value between 0. and 1.
Definition codac_colors.h:39
float s
saturation, a value between 0. and 1.
Definition codac_colors.h:38
Represents an RGB value.
Definition codac_colors.h:24
float b
blue, value between 0. and 1.
Definition codac_colors.h:27
float alpha
opacity, value between 0. (transparent) and 1. (opaque)
Definition codac_colors.h:28
float g
green, value between 0. and 1.
Definition codac_colors.h:26
float r
red, value between 0. and 1.
Definition codac_colors.h:25