Watching the pixel colors change

Initial color of every pixel is black.

Color of each pixel is changed directly on the screen.

Depending on computer speed:

(On my machine, changing the color depth from 32 to 16 causes the entire frame to be painted much more quickly.)

Pressing any key causes the program to terminate.