From 24a83cea3500192c01b2d970f02d3471340b877d Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Tue, 8 Dec 2015 13:44:49 -0500 Subject: [PATCH 01/16] working on physics function --- Documentation1.md => center of mass.md | 2 +- center of mass/center of mass.pde | 13 +++++++++++++ gravity_balls_ex/gravity_balls_ex.pde | 13 +++++++++++++ sketch_151208a/sketch_151208a.pde | 13 +++++++++++++ 4 files changed, 40 insertions(+), 1 deletion(-) rename Documentation1.md => center of mass.md (89%) create mode 100644 center of mass/center of mass.pde create mode 100644 gravity_balls_ex/gravity_balls_ex.pde create mode 100644 sketch_151208a/sketch_151208a.pde diff --git a/Documentation1.md b/center of mass.md similarity index 89% rename from Documentation1.md rename to center of mass.md index 28f94fa..784e418 100644 --- a/Documentation1.md +++ b/center of mass.md @@ -1,4 +1,4 @@ -# Name: +# Name: array gravity balls ## Examples: Insert examples here. diff --git a/center of mass/center of mass.pde b/center of mass/center of mass.pde new file mode 100644 index 0000000..5d4e9cb --- /dev/null +++ b/center of mass/center of mass.pde @@ -0,0 +1,13 @@ +//declare variables + + +int count = 60; + + + + +void setup () { +} + +void draw (){ +} \ No newline at end of file diff --git a/gravity_balls_ex/gravity_balls_ex.pde b/gravity_balls_ex/gravity_balls_ex.pde new file mode 100644 index 0000000..5d4e9cb --- /dev/null +++ b/gravity_balls_ex/gravity_balls_ex.pde @@ -0,0 +1,13 @@ +//declare variables + + +int count = 60; + + + + +void setup () { +} + +void draw (){ +} \ No newline at end of file diff --git a/sketch_151208a/sketch_151208a.pde b/sketch_151208a/sketch_151208a.pde new file mode 100644 index 0000000..5d4e9cb --- /dev/null +++ b/sketch_151208a/sketch_151208a.pde @@ -0,0 +1,13 @@ +//declare variables + + +int count = 60; + + + + +void setup () { +} + +void draw (){ +} \ No newline at end of file From cc56e05acf468133508386602b4fa5c7c2f2aac1 Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Tue, 8 Dec 2015 13:59:31 -0500 Subject: [PATCH 02/16] created math function gives back value of angle between bottom of screen and line --- center of mass.md => angle.md | 4 ++-- center of mass/center of mass.pde | 13 ------------- gives_back_angle/gives_back_angle.pde | 14 ++++++++++++++ gravity_balls_ex/gravity_balls_ex.pde | 13 ------------- sketch_151208a/sketch_151208a.pde | 13 ------------- 5 files changed, 16 insertions(+), 41 deletions(-) rename center of mass.md => angle.md (74%) delete mode 100644 center of mass/center of mass.pde create mode 100644 gives_back_angle/gives_back_angle.pde delete mode 100644 gravity_balls_ex/gravity_balls_ex.pde delete mode 100644 sketch_151208a/sketch_151208a.pde diff --git a/center of mass.md b/angle.md similarity index 74% rename from center of mass.md rename to angle.md index 784e418..4754543 100644 --- a/center of mass.md +++ b/angle.md @@ -10,10 +10,10 @@ Insert description here Demonstrate syntax here ##Parameters: -Name and describe parameters here +angle - radians, x & y coordinates - float ##Returns: -What type of data does it return? +float ##Other notes: Anything else? diff --git a/center of mass/center of mass.pde b/center of mass/center of mass.pde deleted file mode 100644 index 5d4e9cb..0000000 --- a/center of mass/center of mass.pde +++ /dev/null @@ -1,13 +0,0 @@ -//declare variables - - -int count = 60; - - - - -void setup () { -} - -void draw (){ -} \ No newline at end of file diff --git a/gives_back_angle/gives_back_angle.pde b/gives_back_angle/gives_back_angle.pde new file mode 100644 index 0000000..d36cff7 --- /dev/null +++ b/gives_back_angle/gives_back_angle.pde @@ -0,0 +1,14 @@ +//declare variables + + +void setup () { + size(800, 600); //canvas size +} + +void draw () { + background(255); //draw bg + + line(0, 600, mouseX, mouseY); //draw line + float a = atan(sqrt(sq(mouseY) + sq(mouseX))); + println(a); +} \ No newline at end of file diff --git a/gravity_balls_ex/gravity_balls_ex.pde b/gravity_balls_ex/gravity_balls_ex.pde deleted file mode 100644 index 5d4e9cb..0000000 --- a/gravity_balls_ex/gravity_balls_ex.pde +++ /dev/null @@ -1,13 +0,0 @@ -//declare variables - - -int count = 60; - - - - -void setup () { -} - -void draw (){ -} \ No newline at end of file diff --git a/sketch_151208a/sketch_151208a.pde b/sketch_151208a/sketch_151208a.pde deleted file mode 100644 index 5d4e9cb..0000000 --- a/sketch_151208a/sketch_151208a.pde +++ /dev/null @@ -1,13 +0,0 @@ -//declare variables - - -int count = 60; - - - - -void setup () { -} - -void draw (){ -} \ No newline at end of file From 30f11a030548f8b5022fc40f1d7ac7d8dd8b0a66 Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Tue, 8 Dec 2015 14:11:24 -0500 Subject: [PATCH 03/16] finished math function --- angle.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/angle.md b/angle.md index 4754543..4c352c0 100644 --- a/angle.md +++ b/angle.md @@ -1,19 +1,21 @@ -# Name: array gravity balls +# Name: angle ## Examples: -Insert examples here. +println(atan(50)); ## Description: -Insert description here +gives back angle between bottom of screen and line in radians ## Syntax: -Demonstrate syntax here +atan(value) + ##Parameters: -angle - radians, x & y coordinates - float +angle - float: angle in radians +x & y coordinates - float: position of line ##Returns: float ##Other notes: -Anything else? +make sure while inputting value from y to subtract from the height because of the way the coordinate system works From 717c8127e4c1998e91c7bd1a5792fb5640aa2c6d Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Tue, 8 Dec 2015 14:39:07 -0500 Subject: [PATCH 04/16] more changes --- gives_back_angle/gives_back_angle.pde | 11 +++++-- Documentation2.md => impulse and momentum.md | 2 +- impulse_and_momentum/impulse_and_momentum.pde | 30 +++++++++++++++++++ 3 files changed, 39 insertions(+), 4 deletions(-) rename Documentation2.md => impulse and momentum.md (89%) create mode 100644 impulse_and_momentum/impulse_and_momentum.pde diff --git a/gives_back_angle/gives_back_angle.pde b/gives_back_angle/gives_back_angle.pde index d36cff7..ba9e016 100644 --- a/gives_back_angle/gives_back_angle.pde +++ b/gives_back_angle/gives_back_angle.pde @@ -5,10 +5,15 @@ void setup () { size(800, 600); //canvas size } -void draw () { +void draw() { background(255); //draw bg + println(angle(100,500)); +} + + - line(0, 600, mouseX, mouseY); //draw line +float angle (float x, float y) { + line(0, 600, x, y); //draw line float a = atan(sqrt(sq(mouseY) + sq(mouseX))); - println(a); + return a; } \ No newline at end of file diff --git a/Documentation2.md b/impulse and momentum.md similarity index 89% rename from Documentation2.md rename to impulse and momentum.md index 28f94fa..e68218c 100644 --- a/Documentation2.md +++ b/impulse and momentum.md @@ -1,4 +1,4 @@ -# Name: +# Name: impulse and momentum ## Examples: Insert examples here. diff --git a/impulse_and_momentum/impulse_and_momentum.pde b/impulse_and_momentum/impulse_and_momentum.pde new file mode 100644 index 0000000..7b65e1f --- /dev/null +++ b/impulse_and_momentum/impulse_and_momentum.pde @@ -0,0 +1,30 @@ +float x, y, velx, vely, px, py, p; + + +void setup() { + size(800, 600); // canvas size + //initialize variables + x = 0; + y = 0; + velx = 5; + vely = 8; +} + +void draw() { + background(193, 220, 230); //draw bg + ellipse(x, y, 20, 20); //draw ellipse + x += velx; // gives ball x velocity + y += vely; //gives ball y velocity + if (x >= width) { + velx = -velx; //ball reverses direction + } else if (x <= 0) { + velx = -velx; //ball reverses direction + } + if (y >= height) { + vely = -vely; + } + if (y <= 0) { + vely = -vely; + } + +} \ No newline at end of file From b511b0a6ce3dbd5dee087a90a091905bd82677bb Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Tue, 8 Dec 2015 14:47:38 -0500 Subject: [PATCH 05/16] made physics function calculates impulse --- impulse and momentum.md | 16 ++++++---- impulse_and_momentum/impulse_and_momentum.pde | 30 +++++-------------- 2 files changed, 18 insertions(+), 28 deletions(-) diff --git a/impulse and momentum.md b/impulse and momentum.md index e68218c..8e72e85 100644 --- a/impulse and momentum.md +++ b/impulse and momentum.md @@ -1,19 +1,23 @@ -# Name: impulse and momentum +# Name: momentum ## Examples: -Insert examples here. +println(momentum); ## Description: -Insert description here +gives momentum when values are put in ## Syntax: -Demonstrate syntax here +p = sqrt(sq(px(value)) + sq(py(value)) ##Parameters: -Name and describe parameters here +mass - float: mass of objects in kg +velx0, velxf, vely0, velyf - float: velocity of object in x and y direction, final and initial +px - float: x momentum +py - float: y momentum +p - float: total momentum ##Returns: -What type of data does it return? +float ##Other notes: Anything else? diff --git a/impulse_and_momentum/impulse_and_momentum.pde b/impulse_and_momentum/impulse_and_momentum.pde index 7b65e1f..6d76496 100644 --- a/impulse_and_momentum/impulse_and_momentum.pde +++ b/impulse_and_momentum/impulse_and_momentum.pde @@ -1,30 +1,16 @@ -float x, y, velx, vely, px, py, p; - - void setup() { size(800, 600); // canvas size //initialize variables - x = 0; - y = 0; - velx = 5; - vely = 8; } void draw() { background(193, 220, 230); //draw bg - ellipse(x, y, 20, 20); //draw ellipse - x += velx; // gives ball x velocity - y += vely; //gives ball y velocity - if (x >= width) { - velx = -velx; //ball reverses direction - } else if (x <= 0) { - velx = -velx; //ball reverses direction - } - if (y >= height) { - vely = -vely; - } - if (y <= 0) { - vely = -vely; - } - + println(m(23, 5, 8, 3, 74)); +} + +float m (float mass, float velx0, float velxf, float vely0, float velyf) { + float px = mass*velxf - mass*velx0; //x momentum + float py = mass*velyf - mass*vely0; //y momentum + float p = sqrt(sq(px) + sq(py)); //total momentum + return p; //returns momentum } \ No newline at end of file From a7fad8e6d01cf83f5c4f8b777eaa97031dfc87fd Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Tue, 8 Dec 2015 23:31:17 -0500 Subject: [PATCH 06/16] eeh --- gives_back_angle/gives_back_angle.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gives_back_angle/gives_back_angle.pde b/gives_back_angle/gives_back_angle.pde index ba9e016..c893bf9 100644 --- a/gives_back_angle/gives_back_angle.pde +++ b/gives_back_angle/gives_back_angle.pde @@ -15,5 +15,5 @@ void draw() { float angle (float x, float y) { line(0, 600, x, y); //draw line float a = atan(sqrt(sq(mouseY) + sq(mouseX))); - return a; -} \ No newline at end of file + return a; //angle in radians +} From a187ef1155b0c3d5d30d2baf1516ecfb76a148e1 Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Tue, 8 Dec 2015 23:31:55 -0500 Subject: [PATCH 07/16] added units --- impulse_and_momentum/impulse_and_momentum.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/impulse_and_momentum/impulse_and_momentum.pde b/impulse_and_momentum/impulse_and_momentum.pde index 6d76496..94fdddd 100644 --- a/impulse_and_momentum/impulse_and_momentum.pde +++ b/impulse_and_momentum/impulse_and_momentum.pde @@ -12,5 +12,5 @@ float m (float mass, float velx0, float velxf, float vely0, float velyf) { float px = mass*velxf - mass*velx0; //x momentum float py = mass*velyf - mass*vely0; //y momentum float p = sqrt(sq(px) + sq(py)); //total momentum - return p; //returns momentum -} \ No newline at end of file + return p; //returns momentum (kg*m/s) +} From 012550f085c86c22d613ae4fc3cbeba6fd2c6d0f Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Wed, 9 Dec 2015 05:54:23 -0500 Subject: [PATCH 08/16] mapping tan function --- tan function | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tan function diff --git a/tan function b/tan function new file mode 100644 index 0000000..079191a --- /dev/null +++ b/tan function @@ -0,0 +1,18 @@ +float a = 0; +float b = 0; + + +void setup () { + size(800, 600); //canvas size + smooth(); +} + +void draw () { + background(0); + float x = map(tan(a), -PI/2, PI/2, 0, width); + float y = map(tan(b), -10, 100, 0, height); + //line(width/2, 0, x, height/2); + ellipse(x, y, 30, 30); + a += 0.0011; + b += 0.02; +} From 493cf353b71f349bcce9b419461f2755f595ae57 Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Wed, 9 Dec 2015 06:01:21 -0500 Subject: [PATCH 09/16] changed some stuff --- tan function | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tan function b/tan function index 079191a..3298961 100644 --- a/tan function +++ b/tan function @@ -8,11 +8,17 @@ void setup () { } void draw () { - background(0); + background(255) ; + fill(208, 234, 242); + + float x = map(tan(a), -PI/2, PI/2, 0, width); float y = map(tan(b), -10, 100, 0, height); - //line(width/2, 0, x, height/2); + stroke(255); + line(380, 0, x, height); + stroke(208, 234, 242); ellipse(x, y, 30, 30); a += 0.0011; b += 0.02; + println(y); } From 51d90f8cefa250d88f94b4081f7706001cc94e46 Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Wed, 9 Dec 2015 14:10:07 -0500 Subject: [PATCH 10/16] update tan function put tan function into a .pde --- tan_function/tan_function.pde | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tan_function/tan_function.pde diff --git a/tan_function/tan_function.pde b/tan_function/tan_function.pde new file mode 100644 index 0000000..83b9d7d --- /dev/null +++ b/tan_function/tan_function.pde @@ -0,0 +1,24 @@ +float a = 0; +float b = 0; + + +void setup () { + size(800, 600); //canvas size + smooth(); +} + +void draw () { + background(255) ; + fill(208, 234, 242); + + + float x = map(tan(a), -PI/2, PI/2, 0, width); + float y = map(tan(b), -10, 100, 0, height); + stroke(255); + line(380, 0, x, height); + stroke(208, 234, 242); + ellipse(x, y, 30, 30); + a += 0.0011; + b += 0.02; + println(y); +} \ No newline at end of file From 63741acb8884836b9b86305f4d9caa328d617ef5 Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Wed, 9 Dec 2015 14:10:49 -0500 Subject: [PATCH 11/16] updated a little bit of document 3 --- Documentation3.md => tan function.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Documentation3.md => tan function.md (100%) diff --git a/Documentation3.md b/tan function.md similarity index 100% rename from Documentation3.md rename to tan function.md From b8c8a00fee936c34549e0262fdad1a754558dfa9 Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Wed, 9 Dec 2015 14:18:12 -0500 Subject: [PATCH 12/16] possible finish of tan function --- tan_function/tan_function.pde | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/tan_function/tan_function.pde b/tan_function/tan_function.pde index 83b9d7d..7ce7da4 100644 --- a/tan_function/tan_function.pde +++ b/tan_function/tan_function.pde @@ -4,21 +4,17 @@ float b = 0; void setup () { size(800, 600); //canvas size - smooth(); + smooth(); //makes function smooth + noStroke(); // no stroke for ellipse } void draw () { - background(255) ; - fill(208, 234, 242); - - - float x = map(tan(a), -PI/2, PI/2, 0, width); - float y = map(tan(b), -10, 100, 0, height); - stroke(255); - line(380, 0, x, height); - stroke(208, 234, 242); - ellipse(x, y, 30, 30); - a += 0.0011; - b += 0.02; - println(y); + background(255) ; //draw bg + fill(208, 234, 242); //gives ellipse color + float x = map(tan(a), -PI/2, PI/2, 0, width); //maps tan function + float y = map(tan(b), -10, 100, 0, height); //maps tan function + ellipse(x, y, 30, 30); //draw ellipse, radius of 30 + a += 0.003; //add to a + b += 0.02; //add to b + a += 0.01; //add to a again to speed up ball } \ No newline at end of file From dabf6276f69064490aa2280eb87b3f31efb2b25f Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Thu, 10 Dec 2015 14:34:41 -0500 Subject: [PATCH 13/16] changed tan function to drawing triangles --- Documentation3.md | 19 +++++++++++++++++++ tan function | 24 ------------------------ tan_function/tan_function.pde | 19 ++++++++----------- 3 files changed, 27 insertions(+), 35 deletions(-) create mode 100644 Documentation3.md delete mode 100644 tan function diff --git a/Documentation3.md b/Documentation3.md new file mode 100644 index 0000000..73105c9 --- /dev/null +++ b/Documentation3.md @@ -0,0 +1,19 @@ +# Name: draw tan function + +## Examples: +Insert examples here. + +## Description: +Insert description here + +## Syntax: +Demonstrate syntax here + +##Parameters: +Name and describe parameters here + +##Returns: +What type of data does it return? + +##Other notes: +Anything else? diff --git a/tan function b/tan function deleted file mode 100644 index 3298961..0000000 --- a/tan function +++ /dev/null @@ -1,24 +0,0 @@ -float a = 0; -float b = 0; - - -void setup () { - size(800, 600); //canvas size - smooth(); -} - -void draw () { - background(255) ; - fill(208, 234, 242); - - - float x = map(tan(a), -PI/2, PI/2, 0, width); - float y = map(tan(b), -10, 100, 0, height); - stroke(255); - line(380, 0, x, height); - stroke(208, 234, 242); - ellipse(x, y, 30, 30); - a += 0.0011; - b += 0.02; - println(y); -} diff --git a/tan_function/tan_function.pde b/tan_function/tan_function.pde index 7ce7da4..259021f 100644 --- a/tan_function/tan_function.pde +++ b/tan_function/tan_function.pde @@ -1,20 +1,17 @@ -float a = 0; -float b = 0; + void setup () { size(800, 600); //canvas size - smooth(); //makes function smooth - noStroke(); // no stroke for ellipse } void draw () { background(255) ; //draw bg - fill(208, 234, 242); //gives ellipse color - float x = map(tan(a), -PI/2, PI/2, 0, width); //maps tan function - float y = map(tan(b), -10, 100, 0, height); //maps tan function - ellipse(x, y, 30, 30); //draw ellipse, radius of 30 - a += 0.003; //add to a - b += 0.02; //add to b - a += 0.01; //add to a again to speed up ball + +} + +void drawtriangle(int a, int h, int c, int d, int e, int f, float r, float g, float b) { //create function for traingle + + triangle(a, h, c, d, e, f); //draws traingle at assinged locations + fill(r, g, b); } \ No newline at end of file From e569bc0a2d3a5f882c72124966a0d5d6301f6820 Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Thu, 10 Dec 2015 14:41:44 -0500 Subject: [PATCH 14/16] finished triangle function need to do documentation 3 --- tan_function/tan_function.pde | 17 ----------------- triangle/triangle.pde | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 tan_function/tan_function.pde create mode 100644 triangle/triangle.pde diff --git a/tan_function/tan_function.pde b/tan_function/tan_function.pde deleted file mode 100644 index 259021f..0000000 --- a/tan_function/tan_function.pde +++ /dev/null @@ -1,17 +0,0 @@ - - - -void setup () { - size(800, 600); //canvas size -} - -void draw () { - background(255) ; //draw bg - -} - -void drawtriangle(int a, int h, int c, int d, int e, int f, float r, float g, float b) { //create function for traingle - - triangle(a, h, c, d, e, f); //draws traingle at assinged locations - fill(r, g, b); -} \ No newline at end of file diff --git a/triangle/triangle.pde b/triangle/triangle.pde new file mode 100644 index 0000000..6cf6877 --- /dev/null +++ b/triangle/triangle.pde @@ -0,0 +1,17 @@ + + + +void setup () { + size(800, 600); //canvas size +} + +void draw () { + background(255) ; //draw bg + drawtriangle(234, 23, 123, 573, 742, 46, 234, 56, 56); //draws triangle w/ assigned vaues for stuff +} + +void drawtriangle(float a, float h, float c, float d, float e, float f, float r, float g, float b) { //create function for traingle + + triangle(a, h, c, d, e, f); //draws traingle at assinged locations + fill(r, g, b); //color of triangle +} \ No newline at end of file From 98b1fcc25f074ae340875671bde570569c6a3040 Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Fri, 11 Dec 2015 21:22:51 -0500 Subject: [PATCH 15/16] updated documentation 3 --- tan function.md => triangle.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename tan function.md => triangle.md (57%) diff --git a/tan function.md b/triangle.md similarity index 57% rename from tan function.md rename to triangle.md index 28f94fa..6abbb38 100644 --- a/tan function.md +++ b/triangle.md @@ -1,13 +1,13 @@ # Name: - +drawtriangle ## Examples: -Insert examples here. +triangle(345, 234, 578, 234, 563, 455); ## Description: -Insert description here +draws a triangle at a user-specified location along with a user-specified color ## Syntax: -Demonstrate syntax here + ##Parameters: Name and describe parameters here From 474278c18ef8868f9e9fd5422cb73b6e47e5456d Mon Sep 17 00:00:00 2001 From: thermodynamicallyunfavored Date: Fri, 11 Dec 2015 21:27:34 -0500 Subject: [PATCH 16/16] finished triangle function documentation ig --- triangle.md | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/triangle.md b/triangle.md index 6abbb38..7dd5308 100644 --- a/triangle.md +++ b/triangle.md @@ -1,19 +1,33 @@ # Name: drawtriangle ## Examples: -triangle(345, 234, 578, 234, 563, 455); +void setup(){ + size(800,600); + } +void draw(){ + + drawtriangle(345, 234, 578, 234, 563, 455, 43, 56, 21); +} ## Description: draws a triangle at a user-specified location along with a user-specified color ## Syntax: - +triangle(x1,y1,x2,y2,x3,y3); ##Parameters: -Name and describe parameters here +x1: float - 1st x coordinate of triangle +y1: float - 1st y coordinate of triangle +x2: float - 2nd x coordinate of triangle +y2: float - 2nd y coordinate of triangle +x3: float - 3rd x coordinate of triangle +y3: float - 3rd y coordinate of triangle +r: float - red value of color +g: float - green value of color +b: float - blue value of color ##Returns: -What type of data does it return? +void ##Other notes: -Anything else? +