Drag the background!

Step 17. Nested Loops

The first World draws a bunch of circles every step, with a moving offset. The second World uses a loop inside a loop to draw a grid of circles. Instead of a full grid, it is a grid from x=0 out to the x-value of the mouse position. As with all the Worlds, you can edit it to add whatever code you see in the video, and whatever new code you can think of.

This ends part one of Introduction to Programming.
When you are ready, do Introduction to Programming: Part Two.

World

Tutorial 4.2 (0)
Nested Loops

World

Tutorial 4.2 (1)
Nested Loops
The background is a program, showing the JavaScript graphics used on this site.
The globes light up when you log in.
 
Font:

Users retain ownership of user content.

Platforms      Stats      The name      Terms and conditions

Call for partners      Contact

Call for partners!
Ancient Brain is looking for a partner to co-write a JavaScript or Python coding book for schools, to be used worldwide. This would be a course for students in learning to code from scratch. The book and course will be integrated into the Ancient Brain site. This is an opportunity for someone looking to develop a course and textbook to partner with a site to promote it. Read more.