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
| ArrayList<Trash> myTrash; | |
| void setup() { | |
| size(640, 360); | |
| noStroke(); | |
| // Create an empty ArrayList (will store Ball objects) | |
| myTrash = new ArrayList<Trash>(); | |
| // Start by adding one element |
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
| Trash myTrash; | |
| void setup() { | |
| size(1000, 600); | |
| myTrash = new Trash(); | |
| } | |
| void draw() { | |
| background(0); | |
| } |
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.video.*; | |
| Movie movie; | |
| void setup() { | |
| size(1000, 600); | |
| movie = new Movie(this, "Skipping-Stone-H264.mp4"); | |
| movie.loop(); |
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> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>Divining Librarian</title> | |
| <script src="p5/p5.min.js"></script> | |
| <script src="p5/addons/p5.dom.min.js"></script> | |
| <script src="p5/addons/p5.sound.min.js"></script> | |
| <script src="radiating-lines.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
| var unit = 50; | |
| var count; | |
| var mods = []; | |
| function preload() { | |
| bg = loadImage("library-full.jpg"); | |
| } | |
| function setup() { | |
| createCanvas(windowWidth, windowHeight); |
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
| var x = "I saw a cat"; | |
| var i; | |
| var spot = { | |
| x: 100, | |
| y: 50 | |
| }; | |
| var col = { | |
| r: 255, | |
| g: 0, |
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
| var x = 'I saw a cat outside'; | |
| var text; | |
| function setup() { | |
| createCanvas(500, 300); | |
| text = createP(x); | |
| console.log('string length = ' + x.length); | |
| console.log('uses word I = ' + x.indexOf("I")); | |
| console.log('string includes word ME: ' + x.includes("me")); |
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> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <script src="../p5.min.js"></script> | |
| <script src="../addons/p5.dom.min.js"></script> | |
| <script src="../addons/p5.sound.min.js"></script> | |
| <script src="load-verse.js"></script> | |
| </head> | |
| <body> |
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
| var input, button, greeting; | |
| function setup() { | |
| // create canvas | |
| createCanvas(710, 400); | |
| input = createInput(); | |
| input.position(20, 85); |
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
| var txt; | |
| function preload() { | |
| txt = loadStrings('whitman.txt'); | |
| } | |
| function setup() { | |
| createCanvas(300, 300); | |
| background(200); | |
| // console.log(txt); |
NewerOlder