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
33 changes: 33 additions & 0 deletions ReturningValues/ReturningValues.pde
Original file line number Diff line number Diff line change
@@ -1 +1,34 @@



void setup() {
size(800,600);


}

void draw() {
background(255);
drawrect();
drawcircle(100,0,255);

}




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

void drawcircle(float red,float green,float blue) {
fill(red,green,blue);
ellipse(mouseX,mouseY,30,30);
}





14 changes: 14 additions & 0 deletions VoidFunctions/VoidFunctions.pde
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@

void setup() {

}

void draw() {
println( convertFeetToMiles(10000));
}


float convertFeetToMiles(float imput) {
float result= imput/5280;
return result;

}