Hi there,
I started a small project. I tried to animate a Random Walk on a 2 dimensional lattice.
I set the starting point:
list = {{0, 0}};
The Random Walk is performed by:
For[i = 2, i <= 100, i++,
list = Append[list,list[[i - 1]] + RandomChoice[{{0, 0}, {0, 1}, {1, 0}, {0, -1}, {-1,0}}]]]
The animation is done by this piece of code:
ListAnimate[Table[ListLinePlot[Take[list, i],Mesh -> All, MeshStyle -> {Red, Thick}, ColorFunction -> Hue], {i,Length[list2]}], AnimationRate -> 4]
This code performs an animated Random Walk. Now i try to bring more transparency into each single step.
Does someone has an idea how to improve the code in such a way, that every single step will be highlighted?
Thank you for your ideas!
Cheers
Philipp