Learn R Programming

gyro (version 1.3.0)

tiling: Hyperbolic tiling

Description

Draw a hyperbolic tiling of the Poincaré disk.

Usage

tiling(n, p, depth = 4, colors = c("navy", "yellow"), circle = TRUE, ...)

Value

No returned value, just draws the hyperbolic tiling.

Arguments

n, p

two positive integers satisfying 1/n + 1/p < 1/2

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 draw.circle

Examples

Run this code
library(gyro)
tiling(3, 7, border = "orange")

Run the code above in your browser using DataLab