Question: COMPUTER GRAPHICS Solve Practice Exercise 2.3.5. Write the program and name your source code diamond.cpp Requirement: Each diamond must be lled with its own randomly-generated
COMPUTER GRAPHICS

Solve Practice Exercise 2.3.5. Write the program and name your source code diamond.cpp
Requirement: Each diamond must be lled with its own randomly-generated color.
2.3.5. Scaling and positioning a figure using parameters. Write the function void drawDiamond (GLintPoint center, int size) that draws the simple diamond shown in Figure 2.33, centered at center, and having size size. Figure 2.33. A simple diamond Use this function to draw a "flurry" of diamonds as suggested in Figure 2.34 Figure 2.34. A flurry of diamonds
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
