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
///////////////////////////////////////////////////// p5.js | |
var data; | |
var x = 100; | |
var y = 200; | |
function preload() { | |
data = loadTable('results.csv', 'header'); | |
} |
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
<html> | |
<head> | |
<script type="text/javascript" src="p5.js"></script> | |
<script type="text/javascript" src="p5.dom.js"></script> | |
<script type="text/javascript"> | |
function setup() { | |
var c = createCanvas(400, 400); | |
devicePixelScaling(false); | |
background(0); | |
textSize(40); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/p5.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/addons/p5.dom.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/addons/p5.sound.min.js"></script> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
<script type="text/javascript" src="https://l2.io/ip.js?var=userip"></script> | |
<meta charset="utf-8" /> | |
</head> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>jQuery demo</title> | |
<link rel="stylesheet" href="style.css"></link> | |
<script src="jquery.js"></script> | |
<script src="main.js"></script> | |
</head> | |
<body> | |
<!-- delete any width and height info from url --> |
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
/////////////////////////////////////////////////////////////////////// | |
// JAVASCRIPT | |
// * JavaScript provides the ability to add interactivity to a website, and help enrich the user experience. | |
// * HTML provides a page with structure and CSS provides a page with style, JavaScript provide a page with behavior. | |
// * Like CSS, JavaScript should be saved in an external file with the .js file extension, and then referenced within | |
// an HTML document using the script element. | |
// <script src="script.js"></script> | |
// * Demo file setup | |
// * Demo console.log() | |
<!DOCTYPE html> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>My Stylin Page</title> | |
<style> | |
p { | |
color: green; | |
font-size: 20px; | |
} |
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
//////////////////////////////////////////////////////////////////// | |
//// LIVE VIDEO | |
// Now we need the video library | |
import processing.video.*; | |
// Capture object | |
Capture img; | |
// New images from camera |
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
// if mouse x | |
if (mouseX > width/2) { | |
background(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
function setup() { | |
$('#something').hide(); | |
$('#blah').fadeIn(); | |
$('#mybutton').click(function() { | |
background(random(255)); | |
}) | |
} | |
function draw() { | |
ellipse(width/2 height/2, 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
createDataAnimation: function(filename) { | |
var me = this; | |
return function(p) { | |
var u = new utils(p); | |
var w = 640, h = 480; | |
var frameNumber = 0; |