In this article, we will discuss how to design a Hot Air Balloon in the C using Graphics.
Approach:
- Draw a circle using the circle() function.
- Draw a total of four lines using the line() function which will act as the rope that holds the container.
- Implement the container using the rectangle() function.
- Color the circle which will act as a balloon with red using the setfillstyle() & floodfill() functions.
- Color the container yellow & brown using the setfillstyle() & floodfill() functions.
- Color all the ropes white using the setfillstyle() & floodfill() functions.
- Set the background color blue using setfillstyle() & floodfill() functions.
Below is the implementation of the above approach:
Output:
👁 Image