Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pghsv2rgb.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pghsv2rgb.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pghsv2rgb.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pghsv2rgb.html on line 8
Convert HSV colors to RGB
PgColor_t PgHSV2RGB( PgColorHSV_t hsv_color );
ph
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 );
A composite color value.
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PgColor_t,
PgColorHSV_t,
PgHSV(),
PgRGB2HSV(),
PgSetFillColor()
“Color”
in the Raw Drawing and Animation chapter of the
Photon Programmer's Guide
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pghsv2rgb.html on line 108
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pghsv2rgb.html on line 108