Skip to content

Instantly share code, notes, and snippets.

@forresto

forresto/json.js Secret

Created January 30, 2011 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save forresto/9f98779f853f3f0ede87 to your computer and use it in GitHub Desktop.
Save forresto/9f98779f853f3f0ede87 to your computer and use it in GitHub Desktop.
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