examples

square-grid.js

1
2
3
4
5
6
7
8
9
10
11
12
13
repeat(Math.ceil(display.width / 100), (col) => {
  repeat(Math.ceil(display.height/100), (row) => {
    display.rect(25 + (100 * col), 25 + (100 * row), 100, 100)
  })
})

timer.every(500, () => {
  display.each("rect", (rect) => {
    rect.animate(400, (to) => {
      to.color = color.hsb(random.num(0,360), 25, 95)
    })
  })
})