• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Tuan Huang

  • Spring 2022
  • Fall 2021
  • About

ICM : W6

This week I made a sketch mainly with for loops and arrays. 

For this sketch, the challenge I encountered is when I wanted different points on the 5 white lines to have different y position, I had to write a separate array for them, while keeping them in the same x position. 

a screenshot of my p5 code

-> Similar to the idea of nested for loop to write a grid, I used a nested array[j] to assign different y position in the array[i] 

After finishing this sketch, I realize it can be quite tricky for me to determine at the beginning of a sketch, whether to use a for loop, an array or class objects to achieve my goal. I feel like these three tools are all useful when it comes to creating repetitive patterns. 

 

Primary Sidebar

Footer

Recent

  • #final project: E-Forms
  • #5 Form Generator + Auto-fill by computers
  • #4 Revisiting Digital Cut-up
  • 03: Form Generator
  • 04: Tunnel Cube

Tuan © 2026