{
let height = width / 1.5;
let canvas = this || DOM.canvas(width, height);
let ps = canvas.ps || (() => {
let ps = new paper.PaperScope();
ps.setup(canvas);
return ps;
})();
canvas.ps = ps;
while (true) {
let rectangle = new ps.Rectangle(new ps.Point(Math.random() * width, Math.random() * height), new ps.Size(size, size));
var path = new ps.Path.Rectangle(rectangle, 10);
path.opacity = 0.2;
path.fillColor = color;
yield canvas;
}
return canvas;
}