<div class="container"><div class="row"><h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2></div></div>
whenGreenFlagClicked(); {
this.stage.vars.t = 0;
while (true) {
"yield"* this.render(this.stage.vars.t);
this.stage.vars.t += 1;
"yield";
}
}
render(t2); {
this.clearPen();
this.penColor = Color.rgb(0, 0, 0);
this.vars.x = -260;
for (let i = 0; i < 53; i++) {
this.vars.y = -210;
for (let i = 0; i < 43; i++) {
this.penDown = false;
this.goto(this.vars.x, this.vars.y);
this.direction =
Math.sin(
this.degToRad(
Math.sqrt(this.vars.x * this.vars.x + this.vars.y * this.vars.y) *
0.5 +
t2 * 1
)
) * 360;
this.move(20);
this.penSize = Math.abs(
Math.sin(
this.degToRad(
Math.sqrt(this.vars.x * this.vars.x + this.vars.y * this.vars.y) +
t2 * -5
)
) * 8
);
this.penDown = true;
this.penDown = false;
this.vars.y += 10;
}
this.vars.x += 10;
}
}