An open API service indexing awesome lists of open source software.

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.

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