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
//dashboard | |
var dash = { | |
x: 0, | |
y: 500, | |
w: 1000, | |
h: 1000, | |
}; | |
//stars | |
var stars; |
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
this.display = function() { | |
println(this.counter); | |
this.counter = this.counter + 2.5; | |
if (this.counter > 20) { | |
this.counter = 0; | |
} | |
fill(255, 255, 0); | |
if (this.counter > 10) { | |
ellipse(this.x, this.y, 50, 50); |
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
function ghost(x, y, r, g, b) { | |
//body | |
stroke(r, g, b); | |
fill(r, g, b); | |
arc(x, y, 40, 60, 180, 360, CHORD); | |
rect(x+15, y, 5, 5); | |
rect(x+4, y, 5, 5); | |
rect(x-8, y, 5, 5); | |
rect(x-20, y, 5, 5); | |
//eyes |
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
var ghost1; | |
function setup() { | |
ghost2 = new ghost(255, 150, 0); | |
ghost1 = new ghost(255, 30, 0); | |
ghost3 = new ghost(50, 200, 255); | |
ghost4 = new ghost(255, 50, 150); | |
} | |
function draw() { |
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
var ghost1; | |
var pacman1; | |
function setup() { | |
createCanvas(800, 800); | |
angleMode(DEGREES); | |
frameRate(30); |
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
// Declare a "SerialPort" object | |
var serial; | |
// Variable for size | |
var switchState = 1; | |
var herzog; | |
function preload() { | |
werner = loadSound('Chickens.mp3'); | |
herzog = loadImage("werner.png"); |
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
var sun; | |
var angle = 0; | |
var ring = 7; | |
var volume = 0; | |
var speed = 1; | |
var tears = []; | |
function preload() { | |
asmr = loadSound('ASMR.mp3'); |
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
var circles = []; | |
var paragraphs = []; | |
var slider; | |
var rwords; | |
var gwords; | |
var feeling; | |
var index = 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
var circles = []; | |
var paragraphs = []; | |
var slider; | |
var rwords; | |
var gwords; | |
var feeling; | |
var index = 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
var circles = []; | |
var paragraphs = []; | |
//create DOM P's | |
var slider; | |
var rwords; | |
var gwords; | |
var l; | |
var m; | |
var n; |
OlderNewer