Skip to content

Instantly share code, notes, and snippets.

View forresto's full-sized avatar

Forrest O. forresto

View GitHub Profile
🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 
🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 
🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 
🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 
🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 
🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 🝙 

@forresto
forresto / noflo.json
Last active August 29, 2015 14:19
noflo-canvas demo: line chart
{
"properties": {
"name": "noflo-canvas line chart",
"id": "77f213fb32c9b22527e2",
"environment": {
"type": "noflo-browser",
"content": "<canvas id=\"mycanvas\" width=\"200\" height=\"200\"></canvas>\n"
},
"icon": ""
},
{
"properties": {
"name": "main",
"environment": {
"type": "noflo-browser",
"content": "<video id=\"video\" autoplay loop style=\"max-width:100%;\"></video><br>\n<canvas id=\"colors\" width=\"640\" height=\"100\" style=\"max-width:100%;\"></canvas>\n<button id=\"start\">start camera</button>\n"
},
"icon": ""
},
"inports": {},
@forresto
forresto / index.js
Created December 18, 2014 16:21
requirebin sketch
b = require('browserify');
console.log(b);
@forresto
forresto / noflo.json
Created October 1, 2014 20:33
noflo-ccv test
{
"properties": {
"name": "ccv-test",
"environment": {
"type": "noflo-browser",
"content": ""
}
},
"inports": {},
"outports": {},
@forresto
forresto / mlab20.json
Last active August 29, 2015 14:06
meemoo: mlab20 animation station
{
"info": {
"title": "cam to gif station",
"author": "forresto",
"description": "webcam to animated gif",
"url": "kiosk",
"parents": [
"https://gist.github.com/ea32c33a741119e82c35"
]
},
@forresto
forresto / noflo.json
Last active August 29, 2015 14:06
noflo-canvas demo: yin-yang
{
"properties": {
"name": "yin-yang",
"environment": {
"type": "noflo-browser",
"content": "<style>body{background-color:grey;}</style>\nradius <input id=\"radius\" type=\"range\" min=\"1\" max=\"150\" value=\"150\"></input><br>\nhole <input id=\"hole\" type=\"range\" min=\"0\" max=\"1\" step=\"0.001\" value=\"0.6\"></input><br>"
},
"id": "a1096a406131e109f836"
},
"inports": {},
@forresto
forresto / noflo.json
Last active October 24, 2017 08:50
noflo-clmtrackr -> noflo-geometry
{
"properties": {
"name": "face",
"environment": {
"type": "noflo-browser",
"content": "<video id=\"vid\" width=\"640\" height=\"480\" style=\"position:absolute; top:0px; left:0px\" autoplay></video>\n<canvas id=\"can\" width=\"640\" height=\"480\" style=\"position:absolute; top:0px; left:0px\"></canvas>\n<div id=\"start\" style=\"position:absolute; top:0px; left:0px;\"><button id=\"start\">start camera</button><br/>\ncolor start <input id=\"colorstart\" type=\"range\" min=\"0\" max=\"360\" value=\"0\"></input><br/>\ncolor end<input id=\"colorend\" type=\"range\" min=\"0\" max=\"360\" value=\"360\"></input><br />\ncolor count<input id=\"colorcount\" type=\"range\" min=\"1\" max=\"100\" value=\"50\"></input><br/>\n"
}
},
"inports": {},
"outports": {},
@forresto
forresto / noflo.json
Last active August 29, 2015 14:03
noflo-geometry test
{
"properties": {
"name": "geo",
"environment": {
"type": "noflo-browser"
}
},
"inports": {},
"outports": {},
"groups": [],
# Canvas stuff
canvas = document.getElementById 'fireworks'
context = canvas.getContext '2d'
width = canvas.width = window.innerWidth
w2 = Math.floor width/2
height = canvas.height = window.innerHeight
h2 = Math.floor height/2
TAU = Math.PI*2