CTRE Phoenix C++ 5.33.1
HsvToRgb.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3
4namespace ctre {
5namespace phoenix {
6
7/**
8 * Class to convert Hue, Saturation, Value to Red, Green, Blue
9 */
10class HsvToRgb {
11public:
12/**
13 * Converts HSV to RGB
14 * @param hDegrees hue value
15 * @param S saturation value
16 * @param V value Lightness value
17 * @param r pointer to red value
18 * @param g pointer to green value
19 * @param b pointer to blue value
20 */
21 static void Convert(double hDegrees, double S, double V, float* r, float* g,
22 float* b);
23};
24
25}
26}
Class to convert Hue, Saturation, Value to Red, Green, Blue.
Definition: HsvToRgb.h:10
static void Convert(double hDegrees, double S, double V, float *r, float *g, float *b)
Converts HSV to RGB.
namespace ctre
Definition: paramEnum.h:5