Tutorial: Draw and perform vsync operations using blits, pixmaps, and buffers

This section describes how you can create the familiar hourglass and bar example using pixmaps, buffers, and blits.

The samples in this documentation demonstrate how to accomplish tasks using a variety of techniques. The result is usually a moving blue bar over a yellow background with an hourglass positioned at the top left of the application.

This sample show you how you can create such a simple application by copying pixmaps to buffers, using the screen_blit() function to move data among buffers, and finally making the images visible on a display.

Figure 1. The result of the blit-vsync sample application