Quick Start CanvasLayer
Get started with node-i2d to create rich visualisations on node platform.
Import node-i2djs module
Layer Creation:
let renderer = canvasLayer({context config}, height, width);Element Creation:
let circle = renderer.createEl({
el: 'circle',
attr: {
r: 50,
cx: renderer.width / 2,
cy: renderer.height / 2
},
style: {
fillStyle: '#ff0000'
}
})Apply changes to Canvas Layer
Last updated