Question: Your assignment is to use WebGL to generate an image of the Olympic rings. An example is shown in the following figure. You are to

Your assignment is to use WebGL to generate an image of the Olympic rings. An example is shown in the following figure. You are to use the Midpoint Circle Drawing Algorithm to draw your rings. Figure 1- Example Olympic Rings To use the Midpoint Circle Drawing Algorithm, you must draw your rings point by point. You should have a function that accepts a center position and a radius. Then, call the function 5 times. To consider plotting pixel positions, I recommend using a World Coordinate System of [-100, 100] in both the X and Y directions. To translate your World Coordinate Point to the Clipping Coordinates -1, 1], divide by 100. Also, for every point you calculate, you need to plot symmetric points to complete the circle. Your assignment is to use WebGL to generate an image of the Olympic rings. An example is shown in the following figure. You are to use the Midpoint Circle Drawing Algorithm to draw your rings. Figure 1- Example Olympic Rings To use the Midpoint Circle Drawing Algorithm, you must draw your rings point by point. You should have a function that accepts a center position and a radius. Then, call the function 5 times. To consider plotting pixel positions, I recommend using a World Coordinate System of [-100, 100] in both the X and Y directions. To translate your World Coordinate Point to the Clipping Coordinates -1, 1], divide by 100. Also, for every point you calculate, you need to plot symmetric points to complete the circle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
