xxxxxxxxxx
27
<_>
<custom name="star"
flicker="floor(random(5, 10))"
star="this_element"
>
<_ on="first_frame"
star.x="random(canvas.width)"
star.y="random(canvas.height)"
star.flicker="flicker"
></_>
<_ on="frame_count % flicker == 1"
star.d="random(4, 12)"
></_>
<circle stroke="NONE"></circle>
</custom>
<canvas width="400" height="400" background="0">
<_ on="first_frame"
star_count="0"
repeat="star_count LESS_THAN 100"
change="star_count: star_count + 1"
>
<_ star="create_canvas_element('p-star')">
</_>
</_>
</canvas>
</_>