This file contains 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
/*Liz Khoo - ICM - First Face Drawing*/ | |
float x=0; | |
float y=0; | |
void setup(){ | |
size(500,400); | |
colorMode(HSB,370,110,110); //Default ranges for HSB | |
background(302,22,90); | |
smooth(); |
This file contains 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
/*Liz Khoo - ICM - Revised Face Drawing*/ | |
float bangsX=120; | |
float bangsY=200; | |
float haircolorH=53; | |
float haircolorS=29; | |
float haircolorB=99; | |
float x=0; | |
float y=0; |
This file contains 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 pearlposX = 300; | |
float pearlposY = 150; | |
float headposX; | |
float headposY; | |
float speedX; | |
float pearlFillR; | |
float pearlFillG; | |
float pearlFillB; | |
void setup() { |
This file contains 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 ax = 100; | |
int ay = 20; | |
int bx = 50; | |
int by = 20; | |
int cx = 50; | |
int cy = 50; | |
int dx = 0; | |
int dy = 90; | |
int ex = 100; |
This file contains 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 ax = -20; | |
int ay = -20; | |
int bx = 0; | |
int by = 0; | |
int cx = -10; | |
int cy = 60; | |
int dx = 0; | |
int dy = 60; | |
void setup(){ |
This file contains 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 x1=0, speedx1 = 1; | |
float y1=0, speedy1 = 1; | |
float x2=100, speedx2 = 1; | |
float y2=100, speedy2 = 1; | |
float x3=0, speedx3 = 1; | |
float y3=200, speedy3 = 1; | |
float r=random(8,19); | |
float g=random(50,255); | |
float b=random(50,255); |
This file contains 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
PFont PTSans; | |
color water = color(47, 108, 180); | |
PImage duck1, duck2, duck3; | |
float duck1x, duck2x, duck3x; | |
float duck1y, duck2y, duck3y; | |
float dspeed1, dspeed2, dspeed3; | |
boolean duckDraw1 = true, duckDraw2 = true, duckDraw3 = true; // decides whether to draw the duck | |
boolean duckHit1 = false, duckHit2 = false, duckHit3 = false; // tells me if the duck has been hit |
This file contains 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
//butter machine for Arduino | |
#include <Servo.h> //add servo motor library | |
const int photoPin = A0; //input pin for photosensor | |
const int ledPin = 9; | |
int photoMin = 1023; | |
int photoMax = 0; | |
int photoValue = 1023; |
This file contains 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
Duck[] myDuck = new Duck[3]; | |
Shotgun theGun; | |
Bullet theBullet; | |
PImage rubberduck; | |
color water = color(47, 108, 180); | |
PFont PTSans; | |
boolean gameOver = false; | |
void setup() { |
This file contains 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
//crystal raindrops with video | |
import processing.video.*; | |
Capture video; | |
int totalDiamonds = 10; | |
Diamond[] ourDiamonds = new Diamond[totalDiamonds]; | |
void setup() { |
OlderNewer