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

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!