Calculate top and bottom shading colors
void PgBackgroundShadings(PgColor_t bg, PgColor_t *ts, PgColor_t *bs);
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.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |