Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
768fcbc
Added functions and jets image
Gibby10001 Dec 9, 2015
6d0e77e
Changed Ellipse Code and Acceleration
Gibby10001 Dec 9, 2015
ab1d376
Changed File Names
Gibby10001 Dec 9, 2015
a7f87f4
Update Circles.md
Gibby10001 Dec 9, 2015
c6f7c1c
Update ConverttoCelcius.md
Gibby10001 Dec 9, 2015
ff895c4
Update Circles.md
Gibby10001 Dec 9, 2015
3a97f1d
Update FunctionsChallenge.pde
Gibby10001 Dec 9, 2015
5ed0a5a
Update FunctionsChallenge.pde
Gibby10001 Dec 9, 2015
85e9ff8
Update Circles.md
Gibby10001 Dec 9, 2015
984c89d
Update ConverttoCelcius.md
Gibby10001 Dec 9, 2015
76cc64c
Update FunctionsChallenge.pde
Gibby10001 Dec 10, 2015
2b4f917
Delete 6819282-jets-wallpaper.jpg
Gibby10001 Dec 10, 2015
ea805c5
Delete Jets.md
Gibby10001 Dec 10, 2015
7bdcc02
Update Circles.md
Gibby10001 Dec 10, 2015
f8fb29f
Update ConverttoCelcius.md
Gibby10001 Dec 10, 2015
45a592c
Update Circles.md
Gibby10001 Dec 10, 2015
793af4c
Update ConverttoCelcius.md
Gibby10001 Dec 10, 2015
9748167
Update Circles.md
Gibby10001 Dec 10, 2015
eda4109
Update FunctionsChallenge.pde
Gibby10001 Dec 10, 2015
896a062
Update ConverttoCelcius.md
Gibby10001 Dec 10, 2015
5e96729
Update ConverttoCelcius.md
Gibby10001 Dec 10, 2015
3125bf3
Update ConverttoKelvin.md
Gibby10001 Dec 10, 2015
0cf03a5
Update ConverttoCelcius.md
Gibby10001 Dec 10, 2015
7666a2b
Update ConverttoKelvin.md
Gibby10001 Dec 10, 2015
1b873ac
Update ConverttoCelcius.md
Gibby10001 Dec 10, 2015
a2055a5
Update ConverttoKelvin.md
Gibby10001 Dec 10, 2015
88098a5
Update FunctionsChallenge.pde
Gibby10001 Dec 10, 2015
077b2cb
Update Circles.md
Gibby10001 Dec 10, 2015
63cca23
Update ConverttoCelcius.md
Gibby10001 Dec 10, 2015
519315f
Update ConverttoKelvin.md
Gibby10001 Dec 10, 2015
dd93d88
Update and rename SecondLaw.md to KinematicEquation.md
Gibby10001 Dec 10, 2015
c2cf9c0
Update KinematicEquation.md
Gibby10001 Dec 10, 2015
4c38916
Update and rename Circles.md to Circle.md
Gibby10001 Dec 10, 2015
92caf89
Added Stroke to Ball
Gibby10001 Dec 10, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Circle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Name: circle()

## Examples:
circle(500,400,80);

## Description:
Draws a circle with x and y position using a and b variables respectively and diameter of . The first two parameters set the location, and the third sets the diameter of the circle.
## Syntax:
ellipse(cx, cy, d)

##Parameters:
cx float: x-coordinate of the ellipse

cy float: y-coordinate of the ellipse

d float: diameter of the ellipse

##Returns:
Void

##Other notes:

19 changes: 19 additions & 0 deletions ConverttoCelcius.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Name: FtoCel()

## Examples:
FtoCel(60);

## Description:
This converts Fahrenheit to Celcius. Input a degree value in the parameters, in Fahrenheit, to convert to Celcius.

## Syntax:
FtoCel(f)

##Parameters:
f float: Degrees Fahrenheit

##Returns:
float

##Other notes:

19 changes: 19 additions & 0 deletions ConverttoKelvin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Name: CeltoK()

## Examples:
CeltoK(15.568);

## Description:
This converts Celcius to Kelvin. Input a degree value in the parameters, in Celcius, to convert to Kelvin.

## Syntax:
CeltoK(cel)

##Parameters:
cel float: Degrees Celcius

##Returns:
float

##Other notes:

19 changes: 0 additions & 19 deletions Documentation1.md

This file was deleted.

19 changes: 0 additions & 19 deletions Documentation2.md

This file was deleted.

19 changes: 0 additions & 19 deletions Documentation3.md

This file was deleted.

30 changes: 30 additions & 0 deletions FunctionsChallenge/FunctionsChallenge.pde
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
void setup() {
size(1000, 800); //size of canvas
}

void draw() {
background(0); //set background
println(FtoCel(60)); //print value from fahrenheit to celcius
println(CeltoK(15.568)); //print value from celcius to kelvin
println(KinematicEq(15,9.8,10)); //print value of final velocity
circles(500,400,80); //draw ellipse in canvas
}

float FtoCel(float f) {
return .556*(f-32); //functions converts fahrenheit to celcius
}
float CeltoK(float cel) {
return cel+273.15; //function to converts celcius to kelvin
}
float KinematicEq(float v0,float acc, float x ) {
return sqrt(sq(v0)+(2*acc*x)); //function calulates for final velocity using kinematic equation
}
void circles(float cx,float cy, float d) {
ellipse(cx, cy, d, d); //function draws circles

}
void mousePressed() { //change fill of circle
fill(random(255), random(255), random(255));
stroke(random(255), random(255), random(255));
strokeWeight(10);
}
23 changes: 23 additions & 0 deletions KinematicEquation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Name: KinematicEq()

## Examples:
KinematicEq(15,9.8,10);

## Description:
Finds the final velocity using a kinematic equation when the intial velocity, acceleration, and distance are specified in the parameters.

## Syntax:
KinematicEq(v0,acc,x);

##Parameters:
v0 float: inital velocity

acc float: acceleration

x float: distance

##Returns:
float

##Other notes: