Jump to content

Get a Pixel


dcole.ath.cx

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...