File: wordrotation.R

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 (7 lines) | stat: -rw-r--r-- 218 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
# the simplest animation: rotate the word
for (i in 1:360) {
  dev.hold()
  plot(1, ann = FALSE, type = 'n', axes = FALSE)
  text(1, 1, 'Animation', srt = i, col = rainbow(360)[i], cex = 7 * i/360)
  ani.pause(0.01)
}