![]() |
naev 0.12.5
|
Predefined colours for use with Naev. More...
#include "colour.h"#include "nmath.h"
Go to the source code of this file.
Functions | |
| __attribute__ ((const)) | |
| void | col_linearToGamma (glColour *c) |
| void | col_gammaToLinear (glColour *c) |
| void | col_hsv2rgb (glColour *c, float h, float s, float v) |
| Changes colour space from HSV to RGB. | |
| void | col_rgb2hsv (float *H, float *S, float *V, float R, float G, float B) |
| Changes colour space from RGB to HSV. | |
| void | col_blend (glColour *blend, const glColour *fg, const glColour *bg, float alpha) |
| Blends two colours. | |
Predefined colours for use with Naev.
Definition in file colour.c.
| void col_blend | ( | glColour * | blend, |
| const glColour * | fg, | ||
| const glColour * | bg, | ||
| float | alpha ) |
| void col_hsv2rgb | ( | glColour * | c, |
| float | h, | ||
| float | s, | ||
| float | v ) |
| void col_rgb2hsv | ( | float * | H, |
| float * | S, | ||
| float * | V, | ||
| float | R, | ||
| float | G, | ||
| float | B ) |
Changes colour space from RGB to HSV.
All values go from 0 to 1, except H which is 0-360.
Taken from (GIFT) GNU Image Finding Tool.
| [out] | H | Stores Hue. |
| [out] | S | Stores Saturation. |
| [out] | V | Stores Value. |
| R | Red to convert. | |
| G | Green to convert. | |
| B | Blue to convert. |