File: vi.grid.illusion.Rd

package info (click to toggle)
r-cran-animation 2.7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,268 kB
  • sloc: javascript: 873; sh: 15; makefile: 2
file content (56 lines) | stat: -rw-r--r-- 1,410 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vi.grid.illusion.R
\name{vi.grid.illusion}
\alias{vi.grid.illusion}
\title{Visual illusions: Scintillating grid illusion and Hermann grid illusion}
\usage{
vi.grid.illusion(
  nrow = 8,
  ncol = 8,
  lwd = 8,
  cex = 3,
  col = "darkgray",
  type = c("s", "h")
)
}
\arguments{
\item{nrow}{number of rows for the grid}

\item{ncol}{number of columns for the grid}

\item{lwd}{line width for grid lines}

\item{cex}{magnification for points in Scintillating grid illusions}

\item{col}{color for grid lines}

\item{type}{type of illusions: \code{'s'} for Scintillating grid illusions
and \code{'h'} for Hermann grid illusions}
}
\value{
\code{NULL}
}
\description{
The two most common types of grid illusions are Hermann grid illusions and
Scintillating grid illusions. This function provides illustrations for both
illusions.
}
\details{
A grid illusion is any kind of grid that deceives a person's vision.

This is actually a static image; pay attention to the intersections of the
grid and there seems to be some moving points (non-existent in fact).
}
\examples{
## default to be Scintillating grid illusions
vi.grid.illusion()

## set wider lines to see Hermann grid illusions
vi.grid.illusion(type = "h", lwd = 22, nrow = 5, ncol = 5, col = "white")
}
\seealso{
\code{\link{points}}, \code{\link{abline}}
}
\author{
Yihui Xie
}