pi-day-2021

command module
v0.0.0-...-439c02f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 7 Imported by: 0

README

π-day-2021

This year is 16x16 tiles using the digits of π.

Tile 0

Download the imagery from here:

https://blackchip.org/pi-day-2021

Building the Imagery

Download a billion hexadecimal digits of π from:

https://archive.org/details/pi_hex_1b

The zip file contains a zip file that has the same name which is a bit strange. Unzip in a different directory. In the repository root, create a pi directory and place the pi_hex_1b.txt file there.

Install go and run with:

go run pi.go 

Each hexadecimal digit is converted into four pixels. Each row contains four digits and each image contains a total of 64 digits. For easier viewing, the image is zoomed in by 8 so that each "pixel" is actually an 8x8 square.

Each volume contains 10,000 images and 100 volumes are created. These are found in the images directory. Create zip files in the dist directory using make-dist.sh.

And why do this? To see if there is a Pac-Man image hidden in π somewhere. A Pooka would be nice too.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL