Index / 2017 / System Variables 01
400×400 · p5.js instance mode
System_Variables_01.pde 54 lines
/*
System Variables 01 (width/height)
02/07/2017
*/

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

void draw() {
  noStroke();
  rectMode(CENTER);

  // Red Circle

  //fill(#FF002F);
  //ellipse(width/2, height/2, width, height);

  // Grey Square

  //fill(#32333B);
  //rect(width/2, height/2, width/2, height/2);

  // ====================================================== //

  // Red Square

  //fill(#FF002F);
  //rect(width/4, height/2, width/2, height/2);

  // Blue Square

  //fill(#00FFC1);
  //ellipse((width/4)*3,height/2,width/2,height/2);
  
  // Lines
  
  //stroke(#FFFFFF);
  //strokeWeight(5);
  //line(0,0,width,height);
  //line(width,0,0,height);

  // ====================================================== //

  // Red Flower
  
  //noStroke();
  //fill(#FF002F);
  //ellipse(width/2, height/4, width/3, height/3);
  //ellipse((width/4)*3, height/2, width/3, height/3);
  //ellipse(width/2, (height/4)*3, width/3, height/3);
  //ellipse(width/4, height/2, width/3, height/3);
}
read-only archive source from /2017/Lessons/System_Variables_01/System_Variables_01.pde

Description

This page is generated from the Processing project folder at /2017/Lessons/System_Variables_01/System_Variables_01.pde.

Archive

No companion assets were found in this sketch folder.