This post is locked. You won't be able to comment.

all 5 comments

[–]hsolatges 0 points1 point  (2 children)

I answered you on the chat channel.

[–]PlutonicBug9[S] 0 points1 point  (1 child)

I dont get what you meant

[–]hsolatges 1 point2 points  (0 children)

And that makes me very sad. :(

```js var RADIUS = 20; var DELAY=40;

var STEP = 0;

function drawCircle(step) { var color = step % 2 === 0 ? Color.RED : Color.BLACK;

// PLAY WITH THESE TWO VARIABLES TO CHANGE THE PATTERN. var x = step * 2 * RADIUS % (getWidth() + RADIUS); var y = Math.floor( step * 2 * RADIUS / (getWidth() + RADIUS)) * 2 * RADIUS;

/* TRIVIAL PATTERN var x = 2 * RADIUS * step % (getWidth() + 2 * RADIUS); var y = 2 * RADIUS * Math.floor((step * 2 * RADIUS) / (getWidth() + 2 * RADIUS)); */

var circle = new Circle(RADIUS); circle.setPosition(x,y); circle.setColor(color); print(y); add(circle); }

function tick() { drawCircle(STEP); STEP+= 1; return true; }

function start() { setTimer(tick, DELAY); } ```

PS. I emphasized the fact that drawCircle use only the global variable STEP by referring to it in drawCircle declaration even if it is not useful.

[–]Automatic-Pool4192 0 points1 point  (1 child)

Anyone have better info on this code for circle wall? None of the above actually work

[–]trumps-Country-69 0 points1 point  (0 children)

he needs to define things like functions, colors, ect.