50 lines
964 B
C
50 lines
964 B
C
#ifndef COLOURS_H_
|
|
#define COLOURS_H_
|
|
|
|
struct ColourRGB
|
|
{
|
|
double r;
|
|
double g;
|
|
double b;
|
|
};
|
|
|
|
struct ColourCMYK
|
|
{
|
|
double c;
|
|
double m;
|
|
double y;
|
|
double k;
|
|
};
|
|
|
|
struct ColourHSV
|
|
{
|
|
double h;
|
|
double s;
|
|
double v;
|
|
};
|
|
|
|
struct ColourHSL
|
|
{
|
|
double h;
|
|
double s;
|
|
double l;
|
|
};
|
|
|
|
struct ColourRGB CMYKtoRGB(struct ColourCMYK cmyk);
|
|
struct ColourRGB HSVtoRGB(struct ColourHSV hsv);
|
|
// struct ColourRGB HSLtoRGB(struct ColourHSL hsl);
|
|
|
|
struct ColourCMYK RGBtoCMYK(struct ColourRGB rgb);
|
|
struct ColourCMYK HSVtoCMYK(struct ColourHSV hsv);
|
|
// struct ColourCMYK HSLtoCMYK(struct ColourHSL hsl);
|
|
|
|
struct ColourHSV RGBtoHSV(struct ColourRGB rgb);
|
|
struct ColourHSV CMYKtoHSV(struct ColourCMYK cmyk);
|
|
// struct ColourHSV HSLtoHSV(struct ColourHSL hsl);
|
|
|
|
struct ColourHSL RGBtoHSL(struct ColourRGB rgb);
|
|
struct ColourHSL CMYKtoHSL(struct ColourCMYK cmyk);
|
|
// struct ColourHSL HSVtoHSL(struct ColourHSV hsv);
|
|
|
|
#endif // COLOURS_H_
|