How to use a procedure for Fireworks? Consider the image of fireworks in a nighttime sky, a procedure called Burst that moves the pen to a random location on the screen, moves the pen color forward 256, and then draw a firework burst with a random size and number of rays. (Hint: You may want to add a minimum value to the random size and random number of rays to avoid having bursts that are too small or have too few rays.) The main procedure should call Burst multiple times to generate an image similar to the image below. Note: Because of the random values, your solution image will be different each time you run your program.
Recently Asked Questions
- Please refer to the attachment to answer this question. This question was created from Exam3.
- Question is in the picture. Need to be answered VERY quickly! Can pay extra money if needed.
- Please refer to the attachment to answer this question. This question was created from POLS 3450 Final Exam review Qs (1).