Readme updated with examples

This commit is contained in:
Niles Rogoff 2017-03-19 21:47:07 -04:00
parent 2371d07579
commit 233618bf03
No known key found for this signature in database
GPG Key ID: B78B908F23430F80
7 changed files with 27 additions and 0 deletions

View File

@ -19,3 +19,30 @@ Depends on [libpme](https://github.com/nilesr/libpme) (`pip3 install libpme`)
python3 generator.py [mode]
`mode` can be one of `high` or `greyscale`. If left blank, it generates an image using the lowest bit of the result of the formula. If set to high, it will use the highest bit of the result. If set to greyscale, it will use the result of the formula as a shade of grey, truncated to one byte for png.
### Examples
This is an example with the formula (((((10) >> y) + x) + y) & x) ÷? y
![](sample/normal1.png)
This is an example with the formula (((((x) ^ x) ^ x) - y) & y) ÷? 15
![](sample/normal2.png)
This is what high looks like for the formula ((y) * x) ** x:
![](sample/high1.png)
and for ((((((y) * y) * 5) ** x) + 7) - y) * x
![](sample/high2.png)
and this is what it looks like for greyscale with the formula (((((12) | y) - 11) - x) & x) ^ x
![](sample/greyscale1.png)
and for ((((x) & y) - x) + y) + 11
![](sample/greyscale2.png)

BIN
sample/greyscale1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
sample/greyscale2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
sample/high1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
sample/high2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
sample/normal1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
sample/normal2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB