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; | |
| var y; | |
| var adjustedX; | |
| var adjustedY; | |
| var angle = 0; | |
| var diameter; | |
| function setup() { | |
| createCanvas(windowWidth,windowHeight); | |
| x = width/2; |
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 mic; | |
| var micOn; | |
| var recorder; | |
| var recording; | |
| var soundFile; | |
| function setup() { | |
| // uncomment this line to make the canvas the full size of the window | |
| createCanvas(windowWidth, windowHeight); | |
| // the volume is a number between 0 and 1 |
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 mic; | |
| var micOn; | |
| function setup() { | |
| // uncomment this line to make the canvas the full size of the window | |
| createCanvas(windowWidth, windowHeight); | |
| // the volume is a number between 0 and 1 | |
| mic = new p5.AudioIn(); | |
| micOn = false; | |
| } |
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 ferambie; | |
| function preload() { | |
| ferambie = loadSound('ferambie.mp3'); | |
| } | |
| function setup() { | |
| // uncomment this line to make the canvas the full size of the window | |
| createCanvas(windowWidth, windowHeight); | |
| // the volume is a number between 0 and 1 | |
| ferambie.setVolume(0.5); |
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 canvas; | |
| var middle; | |
| var paddingAmount; | |
| function setup() { | |
| canvas = createCanvas(windowWidth, windowHeight); | |
| canvas.parent('middle_panel'); | |
| middle = select('#middle_panel'); | |
| resizeCanvas(middle.width, middle.height); | |
| } |
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
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <script language="javascript" type="text/javascript" src="../p5.js"></script> | |
| <!-- uncomment lines below to include extra p5 libraries --> | |
| <script language="javascript" src="../addons/p5.dom.js"></script> <!--<script language="javascript" src="../addons/p5.sound.js"></script>--> | |
| <script language="javascript" type="text/javascript" src="sketch.js"></script> | |
| <!-- this line removes any default padding and style. you might only need one of these values set. --> | |
| <style> | |
| #left_panel { |
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 canvas; | |
| var base_url = "http://api.openweathermap.org/data/2.5/forecast"; | |
| var city_url = "?q=Miami"; | |
| var app_id = "&appid=bd82977b86bf27fb59a04b61b657fb6f"; | |
| var units = "&units=imperial"; | |
| var temp = []; | |
| var temp_min = []; | |
| var temp_max = []; | |
| var xCursor; | |
| var yCursor; |
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 canvas; | |
| var base_url = "http://api.openweathermap.org/data/2.5/forecast"; | |
| var city_url = "?q=Miami"; | |
| var app_id = "&appid=f2dbfb3d770d42cca8ee06ad03edef2a"; | |
| var units = "&units=imperial"; | |
| var temp; | |
| var temp_min; | |
| var temp_max; | |
| 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
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <script language="javascript" type="text/javascript" src="../p5.js"></script> | |
| <!-- uncomment lines below to include extra p5 libraries --> | |
| <script language="javascript" src="../addons/p5.dom.js"></script> <!--<script language="javascript" src="../addons/p5.sound.js"></script>--> | |
| <script language="javascript" type="text/javascript" src="sketch.js"></script> | |
| <!-- this line removes any default padding and style. you might only need one of these values set. --> | |
| <style> | |
| #left_panel { |
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
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <script language="javascript" type="text/javascript" src="../p5.js"></script> | |
| <!-- uncomment lines below to include extra p5 libraries --> | |
| <script language="javascript" src="../addons/p5.dom.js"></script> <!--<script language="javascript" src="../addons/p5.sound.js"></script>--> | |
| <script language="javascript" type="text/javascript" src="sketch.js"></script> | |
| <!-- this line removes any default padding and style. you might only need one of these values set. --> | |
| <style> | |
| #left_panel { |