Changes

Jump to navigation Jump to search
no edit summary
</texcode>
  On each circle c ($``c=1,\dots...,nbcircles$``), we will define some objects $``o$ `` ($``o=1,\dots...,nbObjects[c])$ (called sometimes particles here), so the total number of objects is <context>\setuplayout[scale=0.8]$O = \sum_{c=1}^{nbcircles} nbObjects[c]$</context>. Each object $o$ on circle $c$ will have at time $t$ the position `Position[c][o][t]`. This position, express as a number in $[0,1]$ is a coordinate along the path `ThePath[c]`. The position at time 1 is chosen randomly along the path $c$ (line 13), and then will be calculated for each time $t$ from the position at time $t-1$ (line 18). Each object will have its own \type{deplacement}, which depends on the length of the circle modified by random factor (line 14). Lastly, to distinguish easily particles in the following figures, we will assign a random color to each one (line 16): `TheColor[c][o]`
<texcode>
36

edits

Navigation menu