This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Projectile1 projectile1; | |
boolean animation = false; | |
public float jupiter = 24.92; | |
public float neptune = 11.15; | |
public float saturn = 10.44; | |
public float earth = 9.8; | |
public float uranus = 8.871; | |
public float venus = 8.872; | |
public float mars = 3.71; | |
public float mercury = 3.7; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Streamer streamer; | |
streamer_system stsy; | |
boolean space; | |
void setup() { | |
size(900, 900, P2D); | |
// changes origin. | |
streamer = new Streamer(); | |
stsy = new streamer_system(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int lifetime; | |
Population population; | |
int lifecycle; | |
int recordtime; | |
Obstacle target; | |
ArrayList<Obstacle> obstacles; | |
int obstacleFormation = 0; | |
boolean check = false; | |
boolean go; | |
PImage img; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float x = 0; | |
float y = 0; | |
float spacing = 20; | |
void setup() | |
{ | |
size(400,400); | |
background(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Code is based off of an anon. question off of processing.org/discourse. | |
// I made a mathematical correction. | |
// I changed the code to allow an easier time manipulating values. | |
// Added pseudo code for proof of understanding. | |
// Three manipulated Variables | |
// Changed where values were defined to allow correction of mathematical error. | |
int findvaluesbelowthisnumber = 1000; // Sum of two multiples below this number. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Me me; | |
Bullet bullet; | |
import processing.serial.*; | |
Serial myPort; | |
int direction = 0; | |
int button = 0; | |
void setup() | |
{ | |
size(600,600); | |
myPort = new Serial(this,"/dev/cu.usbmodem1411",9600); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int r = 10; | |
int g = 10; | |
int b = 10; | |
void setup() | |
{ | |
size(850, 1100); | |
background (255); | |
} | |
void draw() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() | |
{ | |
size(400,400); | |
background(128,0,128); | |
fill(0,0,128); | |
strokeWeight(5); | |
rect(2.5,2.5,200,100); // | |
fill(255,223,0); | |
strokeWeight(5); | |
rect(202.5,47.5,100,300); // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ball ball; | |
Square square; | |
int Squarex; //The "square's" x location. | |
int Squarey; //The "square's" y location. | |
void setup() | |
{ | |
size(600,600); // Sets background size. | |
background(0); // Sets the color of background. | |
ball = new Ball(); // Calls on the "Ball" class to construct a new "ball." | |
square = new Square(); // Calls on the "Square" class to construct a new "square." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.serial.*; | |
Serial myPort; | |
String val; | |
void setup() | |
{ | |
background(255); | |
size(500,500); | |
String usbmodem1421 = Serial.list()[0]; | |
myPort = new Serial(this, "/dev/cu.usbmodem1421", 9600); |
NewerOlder