Some Go API style nits:<p>- it's unusual to pass a map with expected keys like this. Normally you'd pass a struct like:
p := New(Options{
BaseColor: "...",
Color: "...",
Generator: "...",
})<p>- You could define the known patterns as constants so they're documented and so users don't have to worry about typos<p>- Field names are normally camel-case without underscores, e.g., "Base_color" should be "BaseColor"<p>- You could use Go's build-in image/color package instead of accepting RGB strings, but that's more of a judgement call.<p>If you're accepting pull requests I might send you some, but they're breaking API changes so it's up to you.<p>All-in-all though it's a cool project and I'm glad to see it in Go :)
This is really cool! I quite like the js port <a href="https://github.com/btmills/geopattern" rel="nofollow">https://github.com/btmills/geopattern</a> which you can drop into a website very easily.
> <a href="https://guides.github.com/" rel="nofollow">https://guides.github.com/</a><p>At first, I thought "create generative background images from a string" meant that the algorithm could be fed any string and it would use that string as a sort of seed for the creation of fractal/geometric art. So I thought that the text overlaying each of the rectangles on the GitHub Guides page was the seed text for the art underneath it. After reading further, I see that assumption is wrong. But I think it's an interesting idea to couple the text on a page with automatically generated geometrically and chromatically pleasing art. I see this sort of organic and causative dynamic as the future of a large part of software development, especially as we enhance our toolset with the power of evolution (e.g., a website that evolves by itself through A/B tests and little human intervention).
I see they have an MIT license, which is great, but I have a theoretical copyright question. If they didn't license out the code and, instead, made a background-image-generating website, who would own the copyright to the computer generated images? I'm guessing they would but does anyone know for sure?
This is not meant to be snarky, but what's the point of this? What use does the pattern being uniquely generated from a SHA of a distinct string have over a random pattern being generated from a SHA of some random string?
Nice idea and implementation. We developed a related application which creates colors from git commit sha strings. Have a look at <a href="http://gitart.me/repos/rails/rails" rel="nofollow">http://gitart.me/repos/rails/rails</a>
nice project, and pretty cool visualizations!<p>i did port a lot of the xscreensavers to plan9 and then a few of them to go when go came out. this reminds me a lot of some of them. now if only there was a way to animate them!<p><a href="https://code.google.com/p/goxscr/" rel="nofollow">https://code.google.com/p/goxscr/</a><p>they work using x11, mostly on linux :)