Allegro provides a large library of functions for drawing primitives such as lines, circles, triangles, fills, etc.
In this lesson, I taught you how to use the following functions to draw the primitives shown in Figure 1.