![]() |
|
|
|
Registered
Join Date: Mar 2003
Posts: 10,319
|
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
__________________
“IN MY EXPERIENCE, SUSAN, WITHIN THEIR HEADS TOO MANY HUMANS SPEND A LOT OF TIME IN THE MIDDLE OF WARS THAT HAPPENED CENTURIES AGO.” |
||
![]() |
|
Max Sluiter
|
I have no idea what any of that means, but cool!
![]()
__________________
1971 911S, 2.7RS spec MFI engine, suspension mods, lightened Suspension by Rebel Racing, Serviced by TLG Auto, Brakes by PMB Performance |
||
![]() |
|
Cogito Ergo Sum
|
Wow, thats pretty cool. Wish I understood how you did it...
![]() |
||
![]() |
|
Back in the saddle again
Join Date: Oct 2001
Location: Central TX west of Houston
Posts: 55,874
|
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.
__________________
Steve '08 Boxster RS60 Spyder #0099/1960 - never named a car before, but this is Charlotte. '88 targa ![]() |
||
![]() |
|
Banned
Join Date: May 2005
Location: Earth
Posts: 31,744
|
That's really cool. Wish it was in English.
|
||
![]() |
|
The Unsettler
|
Not too shabby.
|
||
![]() |
|
![]() |
![]() |
Thread Tools | |
Rate This Thread | |
|