How to fade the palette
@eZine
Published in
AbeDemoschool
· 1 year ago
... it looks like there's some major math going on but in reality it's only one precalculated sin-table that does all the work. The constants are #defined at the top of the code and it's easy to change them and see what happens. This program also uses a virtual screen. A virtual screen is an array in memory that can be drawn to without anything being spotted on the visible screen. When the whole frame is ready-drawn just "flip" the virtual screen over to the visible screen and it all appears at once. In this program the virtual screen is smaller than the visible screen but most times they have the same size. Before flipping it's a good id ...