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/pgbackgroundshadings.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/pgbackgroundshadings.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/pgbackgroundshadings.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/pgbackgroundshadings.html on line 8
Calculate top and bottom shading colors
void PgBackgroundShadings( PgColor_t bg,
PgColor_t *ts,
PgColor_t *bs);
- bg
- A
PgColor_t
object that specifies the background color that you want to base the
shading colors on.
- ts
- NULL, or a pointer to a PgColor_t object
where the function stores the calculated top shading color.
- bs
- NULL, or a pointer to a PgColor_t object
where the function stores the calculated bottom shading color.
ph
This function calculates the top and bottom shading colors that may be
used in a border to give an object a 3D appearance. Where possible
(based on the brightness of the background color), the top border
color is lighter than the background and the bottom border color
is darker than the background. Either of ts or
bs may be NULL if that component isn't required.
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PgCalcColorContrast(),
PgColor_t
“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/pgbackgroundshadings.html on line 118
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/pgbackgroundshadings.html on line 118