dcole.ath.cx Posted May 21, 2007 Share Posted May 21, 2007 http://www.firefoxgotyourback.com/ has a cool thing, where users can pick a pixel of an image and make it their own.What they do is take 2 images, a gray-ed out one and the final one... then as users pick them it becomes the final image.How do they do this? This may not be the right cat... it has html, JavaScript, maybe some PHP, AJAX...I would like to try and mimic this. The hard part I think is having pixels from 2 images! If you look at the thing it's just one image. I wouldn't want to have php make the image because that uses a lot of resources.I just looked at the image... it's done with PHP. Time to move the topic! Link to comment Share on other sites More sharing options...
reportingsjr Posted May 21, 2007 Share Posted May 21, 2007 Well, you could sit there for a while and map out what color every single coord is, then use that in the php script. I've seen a script with the gd library that can get the color of a single pixel on its own though. Can't remember what it was, but it was a pic-to-ASCII convertor on phpclasses.org (I think). Link to comment Share on other sites More sharing options...
justsomeguy Posted May 21, 2007 Share Posted May 21, 2007 If it's a GIF or 8-bit PNG then the image is already paletted, it would be pretty easy to get the color for a particular pixel. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.