1
2
3
4
5
6
7
8
9
10
11
12
13
14
| repeat(Math.ceil(display.width / 100), (col) => {
repeat(Math.ceil(display.height/100), (row) => {
display.circle(25 + (100 * col), 25 + (100 * row), 50)
})
})
timer.every(500, () => {
display.each("circle", (rect) => {
rect.animate(400, (to) => {
to.color = color.hsb(random.num(0,360), 25, 95)
to.scale = random.num(2, 12) * 0.1
})
})
})
|
repeat(Math.ceil(display.width / 100), (col) => {
repeat(Math.ceil(display.height/100), (row) => {
display.circle(25 + (100 * col), 25 + (100 * row), 50)
})
})
timer.every(500, () => {
display.each("circle", (rect) => {
rect.animate(400, (to) => {
to.color = color.hsb(random.num(0,360), 25, 95)
to.scale = random.num(2, 12) * 0.1
})
})
})