#include <iostream>
#include <cstdlib>
#include <cmath>
Go to the source code of this file.
Functions | |
void | HSVtoRGB (float &fR, float &fG, float &fB, float &fH, float &fS, float &fV) |
Convert HSV to RGB color space. |
void HSVtoRGB | ( | float & | fR, |
float & | fG, | ||
float & | fB, | ||
float & | fH, | ||
float & | fS, | ||
float & | fV | ||
) |
Convert HSV to RGB color space.
Converts a given set of HSV values `h', `s', `v' into RGB coordinates. The output RGB values are in the range [0, 1], and the input HSV values are in the ranges h = [0, 360], and s, v = [0, 1], respectively.
fR | Red component, used as output, range: [0, 1] |
fG | Green component, used as output, range: [0, 1] |
fB | Blue component, used as output, range: [0, 1] |
fH | Hue component, used as input, range: [0, 360] |
fS | Hue component, used as input, range: [0, 1] |
fV | Hue component, used as input, range: [0, 1] |