Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
PgHSV2RGB()
Convert HSV colors to RGB
Synopsis:
PgColor_t PgHSV2RGB( PgColorHSV_t hsv_color );
Library:
ph
Description:
This function converts hue-saturation-value colors to composite color values.
If you write a color selection function that allows the user to change RGB and HSV values, you should maintain the RGB and HSV values separately. If the user changes the HSV value, you would use PgHSV2RGB() to calculate the new RGB value. For example:
RGBvalue = PgHSV2RGB( HSVvalue );
Returns:
A composite color value.
Classification:
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
See also:
PgColor_t, PgColorHSV_t, PgHSV(), PgRGB2HSV(), PgSetFillColor()
"Color" in the Raw Drawing and Animation chapter of the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)