MANA

MANA Global New Media Art Platform

Art Design Technology Innovate

Fun Programming Processing 034 Create a grid of objects with nested while loops
Open MANA APP,for more creatives

Fun Programming Processing 034 Create a grid of objects with nested while loops

Creative Coding Education

588 2021-07-16 Download

We have seen in previous episodes how to create many objects at once using a while loop. This time we use a while loop inside a while loop to create a grid of objects. The result is a collection of objects (rectangles or circles in our example) distributed in the screen in a pattern similar to the white and black rectangles in a chess game.
Using a loop inside a loop is something very common in programming, and we will see more examples in coming episodes.

Courtesy of Abe Pazos Solatie(Fun Programming)

Abe Pazos Solatie, artist and creative coder producing static, moving and interactive images with a focus on the subtle and the organic.

Creative Coding Processing

Creators

AlanHou

Works 46 Followers 30

上传者

Follow