Index / 2016 / Assignment 08 Mission 02
600×400 · p5.js instance mode
assignment_08_mission_02.pde 22 lines
color c1 = 255;
int num = -1;

void setup() {
  size(600,400);
  background(#000000);
  frameRate(30);
}

void draw() {
  for (int j = 0; j < 20; j++) {
    fill(c1);
    if (c1 == 0) {
      num = 1;
    } if (c1 == 255) {
      num = -1;
    }
    c1 += num;
    
    rect(j*30,190,20,20);
  }
}
read-only archive source from /2016/ASSIGNMENTS/A-08 Loops and Arrays and Graphics/assignment_08_mission_02/assignment_08_mission_02.pde

Description

This page is generated from the Processing project folder at /2016/ASSIGNMENTS/A-08 Loops and Arrays and Graphics/assignment_08_mission_02/assignment_08_mission_02.pde.

Archive

No companion assets were found in this sketch folder.