Learn R Programming

animation (version 0.2-0)

vi.lilac.chaser: Visual Illusions: Lilac Chaser

Description

Stare at the center cross for a few (say 30) seconds to experience the phenomena of the illusion.

Usage

vi.lilac.chaser(np = 16, col = "magenta", bg = "gray", cex.p = 7, 
    cex.c = 5, control = ani.control(interval = 0.05, nmax = 30), ...)

Arguments

np
number of points
col
color of points
bg
background color of the plot
cex.p
magnification of points
cex.c
magnification of the center cross
control
control parameters for the animation; see ani.control
...
other arguments passed to ani.control

Value

  • None.

Details

Just try it out.

References

http://en.wikipedia.org/wiki/Lilac_chaser

See Also

points

Examples

Run this code
op = par(pty = "s") 
vi.lilac.chaser(nmax = 20) 

# HTML animation page; nmax = 1 is enough! 
ani.start()
par(mar = rep(1, 4)) 
vi.lilac.chaser(np = 12, saveANI = TRUE, nmax = 1) 
ani.stop()
par(op)

Run the code above in your browser using DataLab