Skip to content

Instantly share code, notes, and snippets.

@Chloeolhc
Chloeolhc / Array and Function
Created November 12, 2019 12:08
Recitation 7 In Class
int numberofinstances = 100;
float[] x = new float [numberofinstances];
float[] y = new float [numberofinstances];
color[] c = new color [numberofinstances];
float [] xSpeed = new float [numberofinstances];
float [] ySpeed = new float [numberofinstances];
void setup() {
size(700, 700);
colorMode(HSB);
@Chloeolhc
Chloeolhc / Recitation 6 Homework
Created November 5, 2019 16:16
Inter Lab Project
int x = 50;
int condition = 5;
int i=300;
int y=300;
int a=0;
int b=360;
float c=360;
float easing =0.05;
int d =10;
int j=10;
@Chloeolhc
Chloeolhc / Recitation 6 In Class
Created November 5, 2019 16:14
Inter Lab Project
void setup() {
size (600, 600);
background (245, 222, 179, 200);
fill (240, 230, 140, 200);
triangle (0, 0, 520, 220, 520, 440);
fill (255, 239, 213, 100);
triangle (0, 0, 520, 440, 520, 520);
noFill();
fill (240, 230, 140, 50);
quad(0, 220, 520, 40, 520, 220, 0, 480);