diff --git a/ReturningValues/ReturningValues.pde b/ReturningValues/ReturningValues.pde index 8b13789..d013dc6 100644 --- a/ReturningValues/ReturningValues.pde +++ b/ReturningValues/ReturningValues.pde @@ -1 +1,17 @@ +void setup() { + size(800, 600); + +} + +void draw() { + float d = add3(1,2,3); + println(d); + +} + + +float add3(float a, float b,float c){ + float d= a + b + c ; + return d; +} \ No newline at end of file diff --git a/VoidFunctions/VoidFunctions.pde b/VoidFunctions/VoidFunctions.pde index 8b13789..d9abe53 100644 --- a/VoidFunctions/VoidFunctions.pde +++ b/VoidFunctions/VoidFunctions.pde @@ -1 +1,19 @@ +void setup() { + size(800, 600); + +} +void draw() { + drawATri(); + + } + + + + + +void drawATri() { + float d = 30; + fill(random(0,255),random(0,255),random(0,255)); + triangle(random(0,800), random(0,600), random(0,800), random(0,600), random(0,800), random(0,600)); +} \ No newline at end of file