var stage = new Konva.Stage({ container: 'container', width: width, height: height }); var layer = new Konva.Layer(); var colors = ['red', 'orange', 'yellow', 'green', 'blue', 'purple']; var blobs = [];
// create 6 blobs for (var n = 0; n < 6; n++) { // build array of random points var points = []; for (var i = 0; i < 5; i++) { points.push(stage.width() * Math.random()); points.push(height * Math.random()); }