Question: Write a code using processing to Draw stars in space moving across the canvas. MUST BE DONE IN PROCESSING Your sketch should meet the following
Write a code using processing to Draw stars in space moving across the canvas. MUST BE DONE IN PROCESSING Your sketch should meet the following criteria: Use a canvas size of 500 by 500. To draw a star, use a circle. In order to create a simulation of traveling in space, a. The star should first originate at the center of the canvas. b. It should then move away from the center at a constant speed. c. When it reaches the edge of the canvas, it should repeat steps a and b. d. Repeating steps a, b, and c should create an impression of a spaceship traveling in space Typically, when an object is approached, the size of the object appears to increase. To create the effect that the ship is moving towards the stars, the size of the stars should change. a. The size of the star should gradually increase as it moves away from the center of the canvas. A constant MAX_STAR_SIZE should be used to achieve the maximum size of the star. Draw at least 4 stars following the above requirements. Use final named constants where needed Use the primitive data type int and/or float. You are required to create the following functions a. setup() b. draw() c. other functions as required
MUST BE DONE IN PROCESSING!!!!.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
