Initial state of vector (or array?), I do not understand

Hmm I do not quite understand your answer. To me, the two lines refer to x_2 and y_2, not to x_2 alone, am I wrong?

I do not see anything wrong with the brackets, which ones do you think are wrong?

Ok about Setup being ran once, this is good because I specify there where I want the group of red points to spawn. For some reason, it has no effect whatsoever in the visualization when the code is ran.

I also do not really understand the comment about x and y points being outside the canvas. I have used conditions that if the point new coordinates would be outside the canvas, then the point would stay on the canvas limits (this part of the code works well), so there is no point outside the canvas. There is also no agglutination there, so I do not really understand your comment. Am I missing something?

My questions still remain.

1 Like