Skip to content

Instantly share code, notes, and snippets.

@lmccart
Created October 22, 2013 18:40
Show Gist options
  • Select an option

  • Save lmccart/7105828 to your computer and use it in GitHub Desktop.

Select an option

Save lmccart/7105828 to your computer and use it in GitHub Desktop.
var data;
var setup = function() {
createGraphics(600, 400);
loadJSON("sample.js", function(resp) {
data = resp;
console.log(data)
});
};
var draw = function() {
background(120, 180, 200);
print(data);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment