Countdown with a 1 second pause at each interval:
canvas.node(1).add({
size: 20,
labels: { 0: { size: 16 } }
})
for (let i = 3; i > 0; i--) {
canvas.node(1).label().text(i)
canvas.pause(1)
}
canvas.node(1).add({
size: 30,
color: 'green',
labels: { 0: { text: 'Go!' } }
})