Pelican Parts Forums

Pelican Parts Forums (http://forums.pelicanparts.com/)
-   Off Topic Discussions (http://forums.pelicanparts.com/off-topic-discussions/)
-   -   gift for Wayne, via quick coding (http://forums.pelicanparts.com/off-topic-discussions/673625-gift-wayne-via-quick-coding.html)

id10t 04-23-2012 05:08 PM

gift for Wayne, via quick coding
 
Preamble - so there is this webpage I saw forever ago, and it was HTML colored text to make it look like an image. This particular one was the Linux 0.01 release source code and the image was Tux.

So last night, had a hard time being tired enough to go to bed at bed time, so I RTFM'd and coded for about 45 min, and now I have "image2html". Its a PHP script that is half done, but works. It takes an image (RGB png by default, gotta change the function or add logic to support other image types), reads a pixel, gets the RGB/HTML color value, and spits out a character from a plain text file wrapped in a font tag for that color.

So for Wayne... image2html - www.gruv.org

Project for anyone that wants to play with it - image2html gruv.org

Flieger 04-23-2012 05:11 PM

I have no idea what any of that means, but cool! :)

porsche4life 04-23-2012 05:11 PM

Wow, thats pretty cool. Wish I understood how you did it... ;)

masraum 04-23-2012 05:23 PM

Cool stuff. I'm trying to motivate myself to learn Perl, but between my Basic and Fortran experience when i was younger and less interested, my motivation to learn any programming is pretty low.

dipso 04-23-2012 05:26 PM

That's really cool. Wish it was in English.

stomachmonkey 04-23-2012 05:43 PM

Not too shabby.


All times are GMT -8. The time now is 05:36 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2025 Pelican Parts, LLC - Posts may be archived for display on the Pelican Parts Website


DTO Garage Plus vBulletin Plugins by Drive Thru Online, Inc.