// # Demo Canvas 001 // Block and Wheel entitys (make, clone, method); drag and drop block and wheel entitys
// #### Scene setup const canvas = scrawl.findCanvas(‘mycanvas’);
// Namespacing boilerplate
const namespace = canvas.name;
const name = (n) => ${namespace}-${n};
scrawl.makeBlock({ name: ‘black-block’, pivot: ‘white-block’, lockTo: ‘pivot’, calculateOrder: 1, });
scrawl.makeBlock({ name: ‘green-block’, group: ‘my-extra-cell’, fillStyle: ‘my-hidden-cell’, });
// Create the Display cycle animation canvas.render();
// #### Development and testing console.log(scrawl.library);