https://github.com/p2js/pgimg
webtoy to generate unique images from text seeds
https://github.com/p2js/pgimg
Last synced: about 1 year ago
JSON representation
webtoy to generate unique images from text seeds
- Host: GitHub
- URL: https://github.com/p2js/pgimg
- Owner: p2js
- Created: 2024-06-18T22:14:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-19T19:54:04.000Z (almost 2 years ago)
- Last Synced: 2025-02-13T06:48:01.069Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://alfiot.net/pgimg
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# pgImg
A simple webtoy to generate unique images from text seeds.
You can try it over on [my website](https://alfiot.net/pgimg).
### How does it work?
Every color pallette is stored as a list of exactly 8 colors.
Each text seed is first compressed using a SHA-512 hash function; This compresses the seed to a 512 bit number, which gets converted into a 171-digit octal (base 8) number.
Every digit of that number corresponds to one of the 19*9 (171) squares on the image, which is painted to the corresponding color in the pallette.
### Want more color pallettes?
If you have one that you think works well, open an issue and I'll add it.