// erase the canvas with a mostly transparent white rectangle
opacity(5)
fill_rectangle(0,0, width,height, 'white')
// restore the opacity to 100%
opacity(100)
// size of the star is tied to the screen dimensions
r_min = min(width, height)/100
r_max = 5*r_min
// draw ten random circles
loop 10
// outer radius of the star
r = random(r_min, r_max)
// random rotation
rotate(random(0,90))
// draw a random star
fill_star(
random(0, width),
random(0, height),
// inner radius
r/2,
// outer radius
r,
random(4, 8),
random('red')
)
end
// animate (repeat every 1/15th of a second, a.k.a. 15fps)
loop(1/15)