write a robo basic program to draw a line with co-ordinates as (0299) and (600 480) and also draw the output
Answers
Answered by
1
Answer:
library is used to include and facilitate graphical operations in program. graphics.h functions can be used to draw different shapes, display text in different fonts, change colors and many more. Using functions of graphics.h you can make graphics programs, animations, projects and games. You can draw circles, lines, rectangles, bars and many other geometrical figures. You can change their colors using the available functions and fill them.
Examples:
For line 1, Input : x1 = 150, y1 = 150, x2 = 450, y2 = 150
For line 2, Input : x1 = 150, y1 = 200, x2 = 450, y2 = 200
For line 2, Input : x1 = 150, y1 = 250, x2 = 450, y2 = 250
Similar questions
English,
1 month ago
English,
1 month ago
English,
2 months ago
English,
2 months ago
Social Sciences,
9 months ago
Political Science,
9 months ago