Skip to content

Instantly share code, notes, and snippets.

function setup() {
createCanvas(2000,2000);
background(0,0,0);
angleMode(DEGREES);
// brownhead();
peachhead();
// normalhead();
smilingmouth();
function setup() {
createCanvas(2000,2000);
background(0,0,0);
angleMode(DEGREES);
// brownhead();
// peachhead();
normalhead();
// smilingmouth();
function setup() {
createCanvas(5000,5000);
background(0,0,0);
angleMode(DEGREES);
let headFunctions = [brownhead, peachhead, yellowhead];
let mouthFunctions = [smilingmouth, squirrelmouth, bracesmouth, sadmouth, ehmouth];
function setup() {
createCanvas(5000,5000);
background(0,0,0);
angleMode(DEGREES);
let headFunctions = [brownhead, peachhead, yellowhead];
let mouthFunctions = [smilingmouth, vampiremouth, squirrelmouth, bracesmouth, sadmouth, ehmouth, viciousmouth];
let eyesFunctions = [normaleyes, rollingeyes, lookingrighteyes, sleepingeyes];
/*
Title: Emojis
Imagined, Designed, and Programmed by: Zachary Xu, Zachary Xu, and Zachary Xu
Date: 10/23/18
Description: It's a grid of emojis that are each different because they all have a unique combination of features.
Sources of ideas and inspiration (title, author, URL):
* https://cdn.cnn.com/cnnnext/dam/assets/170817095355-01-emoticons-stock-super-tease.jpg
* https://cmkt-image-prd.global.ssl.fastly.net/0.1.0/ps/2979467/580/386/m1/fpnw/wm0/popular-emojis-emoticons-.png?1500216910&s=434a85f93ae106a38ec27462844d40cd
* https://timedotcom.files.wordpress.com/2014/09/emoticon.jpg?quality=85
//create an empty array called balls
let balls = [];
function setup() {
createCanvas(800, 400);
}
function draw(){
background(220);
function setup() {
createCanvas(500,500)
background(0,0,0)
ellipse()
}
function draw() {
ball()
rectangles()
}
let me;
let you;
let gravity;
let rectarray = [];
let caught = false;
function setup() {
createCanvas(1000,1000)
let me;
let you;
let gravity;
let rectarray = [];
let caught = false;
function setup() {
let you;
let gravity;
let rectarray = [];
let caught = false;
let currentRectangle;
let died = false;