This tiling is a visualization of Hyperbolic Geometry. In this geometry, given 1 line and a point not on the line, infinitely many lines through this point are parallel to the original line. P is the number of points in the polygon, and Q is the number of polygons through a point. X and Y make up the position of the first polygon. Press the green flag to generate the tiling, and press r to reset variables to default. Press a to alternate tiling (remove half of the vertices and replace edges)
Too many formulas from math stack exchange http://www.malinc.se/noneuclidean/en/poincaretiling.php http://www.malinc.se/noneuclidean/en/poincaredisc.php http://www.malinc.se/noneuclidean/en/circleinversion.php