// CASE 2: node specified, node is a DIV ELEMENT ID
// A canvas with p5 attached will be inserted inside of it.

var sketch = function(p) {
  var gray = 0;

  p.setup = function() {
    p.createCanvas(400, 400);
  };

  p.draw = function() {
    p.background(gray);
    p.rect(p.width / 2, p.height / 2, 50, 50);
  };

  p.mousePressed = function() {
    gray += 10;
  };
};

var myp5 = new p5(sketch, 'p5-container');
