Question: Hi, I am trying to write a for-loop to create and arrange balls like the above picture, but my codes have arranged the balls like

 Hi, I am trying to write a for-loop to create and

Hi, I am trying to write a for-loop to create and arrange balls like the above picture, but my codes have arranged the balls like the picture below.

arrange balls like the above picture, but my codes have arranged the

How should I amend my codes to get my desired arrangement, thank you!

balls like the picture below. How should I amend my codes to

unction generateBalls()\{ // ball diameter =900/36 // radius = diameter /2 // ballsize =12.5 for (var i=0;i

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!