Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ReturningValues/ReturningValues.pde
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
float FtoC(float F) {
float C = (F-32)*.555555555556;
return C;
}

void draw() {
println(FtoC(212));
}
32 changes: 32 additions & 0 deletions VoidFunctions/VoidFunctions.pde
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
void setup() {
size(800, 600);
noStroke();
frameRate(1000000000);
textAlign(CENTER,CENTER);
textSize(20);
}

void draw() {
blueSquare();
mouseCircles(random(255), random(255), random(255));
keyText();
}

void blueSquare(){
rectMode(CENTER);
fill(0,0,255);
rect(width/2,height/2,50,50);
}

void mouseCircles(float r, float g, float b) {
if (mousePressed) {
fill(r, g, b);
ellipse(mouseX, mouseY, 30, 30);
}
}

void keyText(){
if(keyPressed){
fill(0);
text("ayy lmao", random(width), random(height));
}
}