vi.lilac.chaser {animation}R Documentation

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

Details

Just try it out.

Value

None.

Note

In fact, points in the original version of `Lilac Chaser' are blurred, which is not implemented in this function. If you have any idea, please contact me.

Author(s)

Yihui Xie

References

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

See Also

points

Examples

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

## Not run:  

# 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() 

## End(Not run)
par(op) 

[Package animation version 0.2-0 Index]