diff --git a/ReturningValues/ReturningValues.pde b/ReturningValues/ReturningValues.pde index 8b13789..27a3185 100644 --- a/ReturningValues/ReturningValues.pde +++ b/ReturningValues/ReturningValues.pde @@ -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); +} + + + + + \ No newline at end of file diff --git a/VoidFunctions/VoidFunctions.pde b/VoidFunctions/VoidFunctions.pde index 8b13789..8956ea9 100644 --- a/VoidFunctions/VoidFunctions.pde +++ b/VoidFunctions/VoidFunctions.pde @@ -1 +1,15 @@ +void setup() { + +} + +void draw() { + println( convertFeetToMiles(10000)); +} + + +float convertFeetToMiles(float imput) { + float result= imput/5280; + return result; + +} \ No newline at end of file