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 arrange balls like the above picture, but my codes have arranged the balls like the picture below.

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

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
Get step-by-step solutions from verified subject matter experts
