diff --git a/Documentation1.md b/Documentation1.md deleted file mode 100644 index 28f94fa..0000000 --- a/Documentation1.md +++ /dev/null @@ -1,19 +0,0 @@ -# Name: - -## 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/Documentation2.md b/Documentation2.md deleted file mode 100644 index 28f94fa..0000000 --- a/Documentation2.md +++ /dev/null @@ -1,19 +0,0 @@ -# Name: - -## 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/Documentation3.md b/Documentation3.md deleted file mode 100644 index 28f94fa..0000000 --- a/Documentation3.md +++ /dev/null @@ -1,19 +0,0 @@ -# Name: - -## 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/doc_1/doc_1.pde b/doc_1/doc_1.pde new file mode 100644 index 0000000..95f7d37 --- /dev/null +++ b/doc_1/doc_1.pde @@ -0,0 +1,14 @@ +void setup() { + size(800,600); +} + +void draw() { +background(0); +println(pointslope(3,4,7)); + +} + +float pointslope(float m,float x,float b) { + float result= (m*x)+b; + return result; +} \ No newline at end of file diff --git a/doc_2/doc_2.pde b/doc_2/doc_2.pde new file mode 100644 index 0000000..4c14694 --- /dev/null +++ b/doc_2/doc_2.pde @@ -0,0 +1,14 @@ +void setup() { + size(800,600); +} + +void draw() { +background(0); +println(Work(250,15)); + +} + +float Work(float F, float d) { + float result = F*d; + return result; +} \ No newline at end of file diff --git a/doc_3/data/balloon.png b/doc_3/data/balloon.png new file mode 100644 index 0000000..870289e Binary files /dev/null and b/doc_3/data/balloon.png differ diff --git a/doc_3/doc_3.pde b/doc_3/doc_3.pde new file mode 100644 index 0000000..bbdbf33 --- /dev/null +++ b/doc_3/doc_3.pde @@ -0,0 +1,16 @@ +PVector loc = PVector(), vel= PVector(); + +void setup() { + size(800, 600); +} + +void draw() { + floatingballoons(.5, .05); +} + +void floatingballoons(float vel, float scaleFactor) { + PImage balloon; + balloon = loadImage("balloon.jpg"); + image(balloon, 0, 0, balloon.width*scaleFactor, balloon.height*scaleFactor); + loc.add(vel); +} \ No newline at end of file diff --git a/floatingballoondocumentation.md b/floatingballoondocumentation.md new file mode 100644 index 0000000..8b08acf --- /dev/null +++ b/floatingballoondocumentation.md @@ -0,0 +1,18 @@ +# Name: floatingballons() + +## Examples: +floatingballoons(.5,.05) + +## Description: +This function intitializes an image of a balloon floating around the screen. + +## Syntax: +floatingballoon(vel, scaleFactor) + +##Parameters: +float vel: add velocity to the image +float scaleFactor: changes the size of the image + +##Returns: +It returns an image floating around the screen. + diff --git a/mathfunctiondocumentation b/mathfunctiondocumentation new file mode 100644 index 0000000..85b998d --- /dev/null +++ b/mathfunctiondocumentation @@ -0,0 +1,19 @@ +# Name: pointslope() + +## Examples: +printlm(pointslope(3,4,7)); + +## Description: +This function will give the y value for the point slope math equation, y=mx=b. The m stands for the slope, the x stands for the x coordinate, and the b stands for the y-intercept. This equation uses 3 variables to come up with the result of y for the x value plugged into the equation. This equation is linear. + +## Syntax: +pointslope(m, x, b) + +##Parameters: +float m: slope of line +float x: x coordinate of any point of the line +float b: y-intercept of the line + +##Returns: +the Y value for the X value. + diff --git a/physicsfunctiondocumentation b/physicsfunctiondocumentation new file mode 100644 index 0000000..4ac398d --- /dev/null +++ b/physicsfunctiondocumentation @@ -0,0 +1,17 @@ +# Name: Work() + +## Examples: +println(Work(250,15)); + +## Description: +This physics function for work will find the value of Work given the values of Force (F) and distance (d). The F and d are multiplied to give the output value of F. + +## Syntax: +Work(F,d) + +##Parameters: +float F: the amount of Force it take to do a cetain work +float d: the distance the Force moves + +##Returns: +the amount of Work.