This file contains hidden or 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
| //let h1 = 218; | |
| //let s1 = 35; | |
| //let b1 = 7; | |
| //let h = 218; | |
| //let s = 35; | |
| //let b = 7; | |
| //let hr, mn, currentTime, baltimoreTime; | |
| //let currentTime; | |
| let city = []; |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang=""> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Reveal Layers</title> | |
| <link rel="stylesheet" type="text/css" href="style.css" /> | |
| <script src="../p5.min.js"></script> | |
| <script src="../addons/p5.dom.min.js"></script> | |
| <script src="../addons/p5.sound.min.js"></script> |
This file contains hidden or 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
| let reveal, park, trash, trashParticle, parkParticle; | |
| let reclaim, paper, canvas; | |
| let blackedOut = false; | |
| let rewrite, sustainability, word; | |
| let revive, allButton, mortButton, partButton, impButton, mortClose; | |
| let description, closeButton; | |
| let open = true; | |
| function preload() { |
This file contains hidden or 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
| let description, closeButton; | |
| let open = true; | |
| function setup() { | |
| description = select('.content-description'); | |
| closeButton = select('.min'); | |
| closeButton.mousePressed(closeWindow); | |
| } | |
| function closeWindow() { |
This file contains hidden or 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
| let allButton, mortButton, partButton, impButton, mortClose; | |
| function setup() { | |
| createCanvas(windowWidth, windowHeight); | |
| noStroke(); | |
| allButton = createButton('all'); | |
| allButton.position(width-220, 20); | |
| mortButton = createButton('mortality'); | |
| mortButton.position(width-220, 90); |
This file contains hidden or 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
| let blackedOut = false; | |
| let sustainability, word, description, overlay, closeButton; | |
| function preload() { | |
| sustainability = loadStrings('sustainability-text.txt'); | |
| } | |
| function setup() { | |
| // createCanvas(windowWidth, windowHeight); | |
| // background(255); |
This file contains hidden or 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
| let reveal, park, trash, trashParticle, parkParticle; | |
| let description, closeButton; | |
| let open = true; | |
| function preload() { | |
| park = loadImage('assets/fresh-kills.jpg'); | |
| trash = loadImage('assets/landfill.jpg'); | |
| } | |
| function setup() { |
This file contains hidden or 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 yPos = 200; | |
| void setup() { | |
| size(640, 360); | |
| noStroke(); | |
| } | |
| void draw() { | |
| background(0, 255, 255); | |
| fill(0, 0, 255); |
This file contains hidden or 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 f; | |
| int weight = 0; | |
| void setup() { | |
| size(640, 360); | |
| // Create the font | |
| //printArray(PFont.list()); | |
| f = createFont("SpaceMono-Bold.ttf", 18); | |
| textFont(f); |
This file contains hidden or 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
| import processing.sound.*; | |
| SoundFile drop; | |
| void setup() { | |
| size(200, 200); | |
| drop = new SoundFile(this, "trash_impact.mp3"); | |
| drop.amp(0.5); | |
| } |
NewerOlder