1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| input.point((e) => {
if (e.began) {
let col = random.num(0, 360)
display.particles(e.position, {
particle: {
color: color.hsb(col, 42, 92),
borderColor: color.hsb(col, 62, 72),
borderWidth: 2,
style: ["dots", "blocks", "polygons", "clouds", "stars", "hearts"][random.num(0, 5)],
size: 15
}
})
}
})
|
input.point((e) => {
if (e.began) {
let col = random.num(0, 360)
display.particles(e.position, {
particle: {
color: color.hsb(col, 42, 92),
borderColor: color.hsb(col, 62, 72),
borderWidth: 2,
style: ["dots", "blocks", "polygons", "clouds", "stars", "hearts"][random.num(0, 5)],
size: 15
}
})
}
})