[Previous] [Contents] [Index] [Next]

PgBackgroundShadings()

Calculate top and bottom shading colors

Synopsis:

void PgBackgroundShadings(PgColor_t bg, 
                          PgColor_t *ts,
                          PgColor_t *bs);

Description:

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 will be lighter than the background and the bottom border color will be darker than the background. Either of ts or bs may be NULL if that component isn't required.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

[Previous] [Contents] [Index] [Next]