18} __attribute__( ( packed ) ) glColour;
23#include "colours.gen.h"
25#define COL_ALPHA( col, alpha ) \
26 { .r = ( col ).r, .g = ( col ).g, .b = ( col ).b, .a = alpha }
31__attribute__( (
const ) ) double linearToGamma(
double x );
32__attribute__( ( const ) )
double gammaToLinear(
double x );
33void col_linearToGamma( glColour *
c );
34void col_gammaToLinear( glColour *
c );
35void col_hsv2rgb( glColour *
c,
float h,
float s,
float v );
36void col_rgb2hsv(
float *h,
float *s,
float *v,
float r,
float g,
float b );
37void col_blend( glColour *blend, const glColour *fg, const glColour *bg,
void col_blend(glColour *blend, const glColour *fg, const glColour *bg, float alpha)
Blends two colours.
void col_rgb2hsv(float *H, float *S, float *V, float R, float G, float B)
Changes colour space from RGB to HSV.
void col_hsv2rgb(glColour *c, float h, float s, float v)
Changes colour space from HSV to RGB.
represents a colour via its RGBA values.