Fading to black


The fading to black effect is a basic effect which performs decreasing of light by the reduce of the three primary colors (red, green and blue).

The forumla used:

R = R*fade/fademax              R = R*fd >> 10;
G = G*fade/fademax              G = G*fd >> 10;
B = B*fade/fademax              B = B*fd >> 10;

This pno has been designed to only run with 65536 colors based devices.

Two versions can be downloaded: a more recent one that uses HB++ classes, and an older one without the use of classes.