Question: Three.js/Javascript Write a program starburst(n, innerColor, outerColor) that renders a starburst of lines of length 2. The picture below was generated with the call starburst(200,
Three.js/Javascript
Write a program starburst(n, innerColor, outerColor) that renders a starburst of lines of length 2. The picture below was generated with the call starburst(200, red, green) where red and green are set to their respective colors. The lines originate at the origin. The destination of each line is a point on the sphere of radius 2 chosen at random in the following sense: Any small area of the sphere is expected to contain the same number of points.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
