Hacker News new | ask | show | jobs
by thed24 944 days ago
The linked tool is great, it creates some incredibly nice-looking art! Is it open-sourced? I'd be curious to see how the HTML / CSS approach is implemented.

Truth be told, cranking the width and height up on my tool spits out a pretty accurate-looking result too, though granted without offsetting individual characters you can only go so far haha! Scaling the width and height down averages out the image to create a less detailed approximation.

1 comments

Thank you! I had fun with it and wills I said, was really surprised and happy that my coloring “algorithm” works as well as it does. I spent a lot more time trying to figure out how to make the upload, convert to bitmap array, draw on canvas stuff work (and the trial and error is probably pretty obvious as all the commented code and lack of formatting lays evident. It was a “finally, it works… go to bed” situation. )

Yes, it’s open source I. The sense that it runs entirely in your browser. :-) i don’t think I put any license in the code but I do t remember for sure.). That’s the web though right? If you like it, view it Learn it use it, right?

I haven’t put it in my GitHub because it’s really heinous code with lots of commented out nonsense as I was trying to figure out the html canvas, css, and JavaScript to make it work. (None of those pay my bills so it was as much a curiosity for me as it is to you. )

But yeah, if you promise not to point and laugh at how sloppy it is, just “view source”, or Ctrl-shift/I, or right-click|Inspect.. whatever your preferred method is. I may clean it up and make it more accessible if it seems of interest to folks.

Thanks again for taking a look and making time to comment on my tool, especially as a minor threadjack my comment was. :-)