A generative image exercise for converting checksum data into something visual. ImageMagick's sparse-color interpolation methods are used to create stunning unique images.
Example
vizsum README.png < README.md
How this works
Take the following message digest
echo -n emcconville | md5
#=> 8a59b44064a204d569feec76645a6dcb
This project proposes that the data generated by a digest can map to a Pixel data structure.
,---- X coordinate
||,-- Y coordinate
||||
8a59b44064a204d569feec76645a6dcb
| |
`-----+- color value
Or even a Hue only degree value.
,---- X coordinate
||,-- Y coordinate
||||
8a59b44064a204d569feec76645a6dcb
||
`-- hue angle
So any digest blob can (unsafely) be cast to a C data structure
struct pixel {
struct coord {
unsigned char x,y
},
struct color {
unsigned char r,g,b
} // or hue
}
Scaling bytes against quantum colors results in some truly unique points of color. See below for examples of diffrent ImageMagick Interpolation of each color.
echo -n emcconville | vizsum -barycentric sumimg.png
echo -n emcconville | vizsum -bilinear sumimg.png
echo -n emcconville | vizsum -inverse sumimg.png
echo -n emcconville | vizsum -shepards sumimg.png
echo -n emcconville | vizsum -voronoi sumimg.png
Suggestions, comments, and requests are welcome.