{{$t('user.suspension_warning')}}
Press escape to exit fullscreen

{{sketch.instructions}}

CC {{sketch.licenseObject.short}}

Archived Sketch

This sketch is created with an older version of Processing,
and doesn't work on browsers anymore.

View Source Code

Poincare Hyperbolic Disk Tiling

{{$t('general.by')}}
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.
We recovered an unsaved version of this sketch. Please review your changes below.

As a Plus+ Member feature, this source code is hidden by the owner.

  • {{co.title}}
    {{$t('sketch.mode-pjs')}} {{$t('general.learnMore')}}
    Select mode or a template
    {{liveCodeLink}}
    • {{l.url.substr(l.url.lastIndexOf('/') + 1)}}
    {{$t('sketch.layoutDescription')}}

    {{k.category}}
    {{k.label}}
    {{k.description}}

    {{$t('sketch.seeMoreShortcuts')}}

    Versions are only kept for 7 days.
    Join Plus+ to keep versions indefinitely!

    {{$t('general.joinPlus')}}


    {{$t('sketch.versionsSummarized')}}