tiling | R Documentation |
Draw a hyperbolic tiling of the Poincaré disk.
tiling(n, p, depth = 4, colors = c("navy", "yellow"), circle = TRUE, ...)
n, p |
two positive integers satisfying |
depth |
positive integer, the number of recursions |
colors |
two colors to fill the hyperbolic tiling |
circle |
Boolean, whether to draw the unit circle |
... |
additional arguments passed to |
No returned value, just draws the hyperbolic tiling.
The higher value of n
, the slower. And of course
increasing depth
slows down the rendering. The value of p
has no influence on the speed.
library(gyro)
tiling(3, 7, border = "orange")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.