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

COMPUTER GRAPHICS Solve Practice Exercise 2.3.5. Write the program and name your

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!