{
const canvasWidth = 300;
const canvasHeight = 400;
const center = [canvasWidth * 0.5, canvasHeight * 0.5];
const canvas = DOM.canvas(canvasWidth, canvasHeight);
const p = new paper.PaperScope();
paper.setup(canvas);
var path = new p.Path.Rectangle({
point: center,
size: [75, 75],
fillColor: "red"
});
let baseDegree = degree;
path.onFrame = function (event) {
this.rotate(baseDegree);
this.fillColor.hue -= 1
};
return canvas;
}