https://github.com/hansalozu/tupper-s-self-referential-formula
Implementing the Tapper self-referential formula in Python, with which you can create bitmaps with a size of 17x106 pixels.
https://github.com/hansalozu/tupper-s-self-referential-formula
bitmaps formula python tupper
Last synced: 4 months ago
JSON representation
Implementing the Tapper self-referential formula in Python, with which you can create bitmaps with a size of 17x106 pixels.
- Host: GitHub
- URL: https://github.com/hansalozu/tupper-s-self-referential-formula
- Owner: HanSaloZu
- License: mit
- Created: 2020-03-01T22:02:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-02T21:10:20.000Z (about 3 years ago)
- Last Synced: 2025-04-21T13:39:16.242Z (6 months ago)
- Topics: bitmaps, formula, python, tupper
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tupper-s-self-referential-formula-in-Python
This is a Python implementation of the Tupper's self-referential formula that can produce 17x106 pixel bitmaps.
Clone this repository and run the main.py file to see the result (Tupper's formula itself). The k.txt file already contains the required value.
You can configure the application by editing the config.py file. By changing `SCREEN_HEIGHT` and `SCREEN_WIDTH` you can resize the application window. `SCREEN_TITLE` is the title of the application window. By changing `PIXEL_SIZE` you can scale the image that will be drawn.
To draw your own image, you need to put the image k constant in the k.txt file and run the main.py file.
## References
[Wikipedia](https://en.wikipedia.org/wiki/Tupper%27s_self-referential_formula)
[Numberphile video](https://www.youtube.com/watch?v=_s5RFgd59ao)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details