From 66d3a8825c83074dc885c211b63b1f52f3fc9e62 Mon Sep 17 00:00:00 2001 From: JoeHom73 Date: Wed, 9 Dec 2015 13:48:50 -0500 Subject: [PATCH] filled out documentation --- Documentation1.md | 22 +++++++++++++++------- Documentation2.md | 20 ++++++++++++++------ Documentation3.md | 22 +++++++++++++++------- ~$cumentation1.md | Bin 0 -> 162 bytes ~$cumentation2.md | Bin 0 -> 162 bytes ~$cumentation3.md | Bin 0 -> 162 bytes 6 files changed, 44 insertions(+), 20 deletions(-) create mode 100644 ~$cumentation1.md create mode 100644 ~$cumentation2.md create mode 100644 ~$cumentation3.md diff --git a/Documentation1.md b/Documentation1.md index 28f94fa..c05fe1a 100644 --- a/Documentation1.md +++ b/Documentation1.md @@ -1,19 +1,27 @@ -# Name: +# Name: power() ## Examples: -Insert examples here. +power (x, 5, 30) + ## Description: -Insert description here +Returns power when the variables force(f), velocity(v), and cosine theta(t) are input into the function. Note the order of inputting variables is f, v, then t. ## Syntax: -Demonstrate syntax here +float power (float f, float v, float t) { + float power= f * v * cos(t); + return power; ##Parameters: -Name and describe parameters here +Float power +Float f +Float v +Float t + +Function is a float! ##Returns: -What type of data does it return? +Returns numerical data. ##Other notes: -Anything else? + diff --git a/Documentation2.md b/Documentation2.md index 28f94fa..eee01eb 100644 --- a/Documentation2.md +++ b/Documentation2.md @@ -1,19 +1,27 @@ -# Name: +# Name: function ## Examples: -Insert examples here. +function (2, 15, 20, x) ## Description: -Insert description here +Returns the value of a trinomial(y) when a, b, c, and x are input into the function. ## Syntax: -Demonstrate syntax here +float function (float a, float b, float c, float x) { + float y = sq(a*x)+(b*x)+c; + return y; +} ##Parameters: -Name and describe parameters here +Float a +Float b +Float c +Float x + +Function is a float ##Returns: -What type of data does it return? +Returns numeric data ##Other notes: Anything else? diff --git a/Documentation3.md b/Documentation3.md index 28f94fa..ccc8b58 100644 --- a/Documentation3.md +++ b/Documentation3.md @@ -1,19 +1,27 @@ -# Name: +# Name: drawcircle ## Examples: -Insert examples here. +drawcircle(100, 100, 100, 20) ## Description: -Insert description here +Inserts a circle at mouseX and mouseY into the drawing. The color and diameter of the circle can be input by defining red, blue, green and diam. ## Syntax: -Demonstrate syntax here +void drawcircle (float red, float blue, float green, float diam) { noStroke(); +fill(red, blue, green); +ellipse(mouseX, mouseY, diam, diam); +} ##Parameters: -Name and describe parameters here +Float red +Float blue +Float green +Float diam + +Function is a void ##Returns: -What type of data does it return? +Function returns visual data ##Other notes: -Anything else? + diff --git a/~$cumentation1.md b/~$cumentation1.md new file mode 100644 index 0000000000000000000000000000000000000000..f29fa7480d71f24c3aca06095d822a5bb6a570c1 GIT binary patch literal 162 zcmZQzpai^?y_kBMfuRRx#v3&Ldn7(HP|-UiK1k0?D8K#xe~>i83lRT5!o1f&J^(7B B8%zKI literal 0 HcmV?d00001 diff --git a/~$cumentation2.md b/~$cumentation2.md new file mode 100644 index 0000000000000000000000000000000000000000..c0744540864bfc706ec3b2ded0e369e6bc4fd8ea GIT binary patch literal 162 zcmd<`$}dhW$WZXe&t)JUa4~o>kV{P%9%4E38Rl2LM~N78n2k literal 0 HcmV?d00001 diff --git a/~$cumentation3.md b/~$cumentation3.md new file mode 100644 index 0000000000000000000000000000000000000000..c0744540864bfc706ec3b2ded0e369e6bc4fd8ea GIT binary patch literal 162 zcmd<`$}dhW$WZXe&t)JUa4~o>kV{P%9%4E38Rl2LM~N78n2k literal 0 HcmV?d00001