Create a gist now

Instantly share code, notes, and snippets.

@forresto /json.js Secret
Created Jan 30, 2011

What would you like to do?
var testGraph = {
info: {
title: "iframework test",
author: "sembiki.com",
description: "metronome to processing and log",
url: ""
},
nodes: [
{
id: 1,
src: "http://meemoo.github.com/iframework/metronome.html",
"x":130,"y":47,"w":250,"h":150,
state: { bpm: 140 }
},
{
id: 2,
src: "http://meemoo.github.com/iframework/examples/log.html",
"x":561,"y":7,"w":295,"h":230
},
{
id: 3,
src: "http://meemoo.github.com/iframework/examples/processing.html",
"x":128,"y":246,"w":328,"h":348,
state: {
processingcode: "void setup() { size(300, 300); colorMode(HSB, 360, 100, 300); noStroke(); background(0); } \n void mousePressed () { fill(random(360), 180, 300); triangle(random(width), random(height), 100, 100, 200, 200);}"
}
},
{
id: 4,
src: "http://meemoo.github.com/iframework/examples/glitch.html",
"x":579,"y":255,"w":469,"h":211
}
],
edges: [
{ source: [1, "default"], target: [2, "default"] },
{ source: [1, "beat"], target: [3, "pressed"] },
{ source: [3, "image"], target: [4, "image"] }
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment