unique-wallpaper
The aim of this project is to generate 'procedural' distinct wallpaper like graphics.
It takes a seed (integer) and recursively uses a pseudo-random number generator to construct an svg image.
usage
var uniqueLib = ; // load the libraryvar unique = ; // initalise with defaults var image = uniquestart 500 /* key value */ sizeargvkeyargvwidth||800argvheight||600 // optional sizevar xml = image; // generate xml into a string
tests
Using node.js run:
node test/cli.js --key 54
to generate the image with the key 54
as out.svg
.
For testing/batch use tun:
node test/cli.js --count 500
to generate 500 images in a directory named out
.