GithubHelp home page GithubHelp logo

fl3000 / penrose-staircase-generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.34 MB

A program that calculates the n-th Penrose-Staircase and draws its image.

License: GNU General Public License v3.0

Python 100.00%
penrose staircase reutersvard escher impossible optical-illusion stairs calculator generator

penrose-staircase-generator's Introduction

Penrose-Staircase-Generator

The Penrose-Staircase-Generator calculates the n-th Impossible-Staircase and displays its image on the computer-screen.

For browser-based livedemo visit https://ferdinandlehr.de/mathematik/penrose-staircase-calculator/

PSTAIRS.PY - The python-module that contains the PenroseStaircase-class.

VPSTAIRS.PY - The viewer for displaying the n-th Penrose-Staircase on screen.
(Requires the module pstairs.py (see above) and the external module graphics.py by John Zelle http://mcsp.wartburg.edu/zelle/python)
Usage: python vpstairs.py -n

PSTAIR_VIEWER.CFDG - For hires screen-display with "Context-Free-Art", a free software for visualizing geometric objects with a context-free grammar. See https://www.contextfreeart.org

Written 2022 by F. Lehr

vpstairs

Penrose_Stairs_035_320x200

Penrose_Stairs_035_smallest_staircase_320x220

Penrose_Stairs_035_for_Reutersvard_and_Escher_320x214

Penrose_Stairs_035_Castle_of_the_Wizards_320x259

penrose-staircase-generator's People

Contributors

fl3000 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.