# show an animation in (Windows/X Window...) a graphics device
# unless you have opened an invisible device like png(), pdf(), ...
brownian.motion(n = 15, nmax = 150)
# create HTML animation page
ani.start()
brownian.motion(n = 15, nmax = 100, saveANI = TRUE, width = 500,
height = 500)
ani.stop()
Run the code above in your browser using DataLab