Draw a filled circle, a rectangle, and a filled rectangle
Listing 6 draws the green filled circle on the left side of Figure 1.
Then it draws the blue unfilled rectangle at the top of Figure 1
Then it draws the turquoise filled rectangle at the bottom of Figure 1.
(The original gray background shows through the blue rectangle at the top of Figure 1.)
Listing 6. Draw a filled circle, a rectangle, and a filled rectangle.
//Draw a green filled circle. circlefill(screen,100,200,50,makecol(0,255,0)); //Draw an empty blue rectangle. rect(screen,150,75,250,125,makecol(0,0,255)); //Draw a filled rectangle where the color is turquoise rectfill(screen,175,250,225,350,makecol(0,255,255)); |