Skip to content

Instantly share code, notes, and snippets.

// This #include statement was automatically added by the Particle IDE.
#include <Adafruit_HX8357.h>
Adafruit_HX8357 tft = Adafruit_HX8357(D6, D7, D5, D3, -1, D4);
// called once on startup
void setup() {
// For simplicity, we'll format our data as text, and pipe it to serial.
// but you could just as easily display it in a webpage or pass the data to another system.
// Learn more about the serial commands at https://docs.particle.io/reference/firmware/photon/#serial
let you;
let gravity;
let rectarray = [];
let caught = false;
let currentRectangle;
let died = false;
let me;
let you;
let gravity;
let rectarray = [];
let caught = false;
function setup() {
let me;
let you;
let gravity;
let rectarray = [];
let caught = false;
function setup() {
createCanvas(1000,1000)
function setup() {
createCanvas(500,500)
background(0,0,0)
ellipse()
}
function draw() {
ball()
rectangles()
}
//create an empty array called balls
let balls = [];
function setup() {
createCanvas(800, 400);
}
function draw(){
background(220);
/*
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
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];
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(2000,2000);
background(0,0,0);
angleMode(DEGREES);
// brownhead();
// peachhead();
normalhead();
// smilingmouth();