Hello All, So I was trying to build this little recursive scribbler that makes random little networks of lines, basically like an ant colony but have run into several issues.

Firstly, the touching color did not work well when I made it sense the color of the pen, I am guessing due to aliasing of such a thin line and such, so I instead made it a negative, where it senses not touching white, the board color. The problem is that some of the lines just randomly stop

Secondly, the pseudo random function really seems strange where there is no average behaviour, as the lines tend to branch into millions early on, or do not branch at all. In the moveRandom function, is the pick random 1-3 value calculated once per clone and stored despite being in a loop? So that if that operator is true, does the clone just split until all instances of itself die?

  • I guess some branches suddenly stop because they turn around and collide with themselves and/or each others. This is quite difficult to notice though. It appears also that the blocks after the nested loop execute once per clone or probably less. Couldn't figure out why unfortunately. – Kareem Feb 10 '15 at 18:47
  • They cannot turn around, their angle of change is limited – freshsisyphus Feb 11 '15 at 19:22

You must log in to answer this question.

Browse other questions tagged .