1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| rndc = color.hsb(random.num(0, 359), 42, 95)
repeat(10, (i) => {
let c = display.circle(display.center, (i+1) * 10)
c.color = color.hsb(0, 0, 0, 0)
c.borderWidth = 11
c.borderColor = rndc
c.delay = (i+1)*40
rndc = rndc.darker()
})
timer.every(1000, () => {
let newPos = random.pos()
display.each("circle", (elem) => {
elem.animate(
{t: 400, easing: Easing.easeInOutSine, delay: elem.delay},
(to) => {
to.position = newPos
})
})
})
|
rndc = color.hsb(random.num(0, 359), 42, 95)
repeat(10, (i) => {
let c = display.circle(display.center, (i+1) * 10)
c.color = color.hsb(0, 0, 0, 0)
c.borderWidth = 11
c.borderColor = rndc
c.delay = (i+1)*40
rndc = rndc.darker()
})
timer.every(1000, () => {
let newPos = random.pos()
display.each("circle", (elem) => {
elem.animate(
{t: 400, easing: Easing.easeInOutSine, delay: elem.delay},
(to) => {
to.position = newPos
})
})
})