Computer Graphics-1 Assignment-1
Input: 3 mouse clicks
1- 2 left clicks, one as a center of the first circle and other for the second circle center.
2- The right click is a click between two circles which will be used to calculate the radius of
the first and second circle.
3- Student has authority to choose any quarter in any circle and fill it with lines considering
circle center as the starting point and circle eight point as the ending point of line
1- Two circles have different radius and centers
2- Two circle touch each other in one point, to make this point →you must firstly enter the
center of two circles and the third click must be between first and second center
3- Choose only one quarter to fill with lines of any circle
– Use any line or circle algorithm
– Please enter clicks with the same order in output part [point 2] to build the below shape
two clicks→ You will take two mouse clicks:
1- The left click to control circle center
2- Right click will be a point on circle which will be used to calculate radius.
– Draw the below shape
– Draw the below shape, students can use any circle algorithm to draw circle and any
line algorithm to draw line
– Drawing line when you fetch the end point on circle algorithm
Input: 2 clicks GROUP[CS3,CS4]
1- Left click to control circle center
2- Right click to control circle radius
Filling circle with lines considering circle center as a line starting point and every point on a
circle as a line ending point.
Input: Three mouse clicks
1- The first click as a center of two circle
2- The second is a point on the first circle
3- The third is a point on the second circle
1- Two circles use the same center but with different radius
2- Filling the area between the two circles with other circles
3- Drawing a line from the center to the input point on circle 1
4- Drawing a line from the center to the input point on circle 2
You have authority to use any clicks options Ex.Wm_LBUTTONUP,WM_RBUTTONUP
input: three clicks GROUP[CS5,CS6,IT5,IT6]
1- First one is a center of two circles
2- Second one is a point on first circle
3- Third one is a point on second circle.
5- Two circles use the same center but with different radius6-
Filling the area between the two circles with other circles7-
Remove the first quarter during drawing circles