This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.pdf.*; | |
int maxHeight = 30; | |
int minHeight = 20; | |
int letterHeight = maxHeight; // Height of the letters | |
int letterWidth = 30; // Width of the letter | |
int x = -letterWidth; // X position of the letters | |
int y = 0; // Y position of the letters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
size(500, 500); | |
} | |
void draw() { | |
background(255); | |
stroke(0); | |
strokeWeight(5); | |
line(125, 300, 375, 320); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
size(500, 500); | |
} | |
void draw() { | |
background(255); | |
noStroke(); | |
fill(0); | |
ellipse(160, 170, 100, 100); | |
ellipse(340, 170, 100, 100); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
size(500, 500); | |
background(255); | |
noStroke(); | |
fill(255, 0, 0); | |
ellipse(125, 250, 200, 200); | |
fill(0, 255, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup(){ | |
size(100,100); | |
} | |
void draw(){ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// power data from https://docs.google.com/spreadsheets/d/1OJRMHsO8UV397Bh1dv2ADx8TBEV7WKa_D-TKlPJidTs/edit#gid=0 | |
Table data; | |
void setup() { | |
size(400, 300); | |
data = loadTable("data/energy.csv", "header"); | |
println(data.getRow(0).getFloat(2)); | |
} |