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/pgcalccolorcontrast.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/pgcalccolorcontrast.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/pgcalccolorcontrast.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/pgcalccolorcontrast.html on line 8
Compute light and dark colors to use for a gradient
void PgCalcColorContrast( PgColor_t flat_color,
                          int contrast,
                          PgColor_t *light,
                          PgColor_t *dark );
- flat_color
 
- The base color towards which the computed colors are
  intended to converge. It's the color in the middle of the gradient.
 
- contrast
 
- The amount of contrast that you want in the gradient, ranging from 0 
  (low contrast) through 255 (high contrast).
  The contrast is biased towards the light color.
 
- light
 
- A pointer to the 
  PgColor_t
  in which to store the 
  lightest color for the gradient.
 
- dark
 
- A pointer to the PgColor_t in which to store the darkest 
  color for the gradient.
 
ph
This function computes light and dark colors that can be
used to construct gradients. It's used by Photon to compute
bevel gradients.
Photon
| Safety: |  | 
| Interrupt handler | 
    No | 
| Signal handler | 
    No | 
| Thread | 
    No | 
PgBackgroundShadings(),
PgColor_t
“Gradients”
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/pgcalccolorcontrast.html on line 120
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/pgcalccolorcontrast.html on line 120