Index / 2016 / Quiz 06 Mission 05
400×300 · p5.js instance mode
Quiz_06_Mission_05.pde 28 lines
int xpos = 0;
int ypos = 110;
int yspeed = 3;

void setup() {
  size(400,300);
  background(#ABDDE5);
}

void draw() {
  background(#ABDDE5);
  
  fill(#);
  ellipse(200,150,100,100);
  
  fill(#);
  ellipse(xpos,150,20,20);
  xpos += 1;
  
  fill(#F23D3D);
  rect(160,ypos,80,80);
  ypos += yspeed;
  
  if (ypos >= 220 || ypos <= 0) {
    yspeed = yspeed*-1;
  }
  
}
read-only archive source from /2016/QUIZZES/Q-06 Processing 1/Quiz_06_Mission_05/Quiz_06_Mission_05.pde

Description

This page is generated from the Processing project folder at /2016/QUIZZES/Q-06 Processing 1/Quiz_06_Mission_05/Quiz_06_Mission_05.pde.

Archive

No companion assets were found in this sketch folder.