Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
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.

14 changes: 14 additions & 0 deletions doc_1/doc_1.pde
Original file line number Diff line number Diff line change
@@ -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;
}
14 changes: 14 additions & 0 deletions doc_2/doc_2.pde
Original file line number Diff line number Diff line change
@@ -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;
}
Binary file added doc_3/data/balloon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions doc_3/doc_3.pde
Original file line number Diff line number Diff line change
@@ -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);
}
18 changes: 18 additions & 0 deletions floatingballoondocumentation.md
Original file line number Diff line number Diff line change
@@ -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.

19 changes: 19 additions & 0 deletions mathfunctiondocumentation
Original file line number Diff line number Diff line change
@@ -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.

17 changes: 17 additions & 0 deletions physicsfunctiondocumentation
Original file line number Diff line number Diff line change
@@ -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.