Click on any point to see its orbit to the centre under multiple reflections.

CC Attribution ShareAlike

Poincare Hyperbolic Disk Tiling

This sketch illustrates an algorithm for drawing checkered patterns on the the Poincare disk. The Poincare disk is a model of hyperbolic geometry. The pattern is defined by reflections in the circles shown. For each point we check weather it is inside any of the circles. If not, it must be in that triangular space in the middle, the only bit thats not inside any of the circles. So we draw that pixel white. Otherwise we repeatedly “reflect” the point until it finds its way to the middle triangle. We then colour it depending on weather it took an even or odd number of reflections.
Click on any point to see its orbit to the centre under multiple reflections.
e.g., mouse, keyboard
e.g., visualization, fractal, mouse
Learn more about Creative Commons
Join Plus+ to change privacy settings
  • mySketch
Select mode or a template
Centers sketch and matches the background color.
Prevents infinite loops that may freeze the sketch.
This will be the default layout for your sketches
Easy on the eyes
It will show up when there is an error or print() in code
Potential warnings will be displayed as you type
Closes parenthesis-like characters automatically as you type

Controls
Play
Ctrl+Enter
Code
Ctrl+Shift+Enter
Save
Ctrl+S
Interface
Fullscreen
Ctrl+Alt+F
Switch Layout
Ctrl+Alt+L
Settings
Ctrl+Alt+.
Editor
Tidy Code
Ctrl+B
Multiple Cursors
Ctrl+Click
Duplicate Line/Selection
Ctrl+Shift+D
Move Line
Alt+↑/↓
Select Multiple
Ctrl+D
Find in Code
Ctrl+F
Find Next
Ctrl+G
Find Previous
Ctrl+Shift+G

See More Shortcuts

Join Plus+ for private sketches, version history, 1GB space, custom embeds, and more!