Nodes

Adding and manipulating nodes:

canvas.nodes([1, 2, 3, 4, 5]).add({
    color: 'blue',
    pos: (n, i) => [(i - 2) * 50, 0]
})
canvas.pause(0.5)

for (let i = 1; i < 6; i++) {
    canvas.node(i).highlight().color('red').size('1.2x')
    canvas.pause(0.2)
}