Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get the color of any specified pixel on a web page? [closed]

Tags:

html

My initial searching indicates that for security reasons I might not be able to do this, but I'll ask anyway. How can I get the color of any specified pixel on a web page?
To be more specific, this is my own web page which contains background-color, images, css-modified-elements. I need to know the color of a specific pixel on the fully rendered web page. The info can't be from a screen-grab, because I want to modify my fully rendered page.

Ouch !!! Did someone really “minus 1” me for asking genuine question? Tough crowd!

To be more specific: I want to add a user-moveable canvas element to the web page that visually alters the part of the web page that the canvas is hovering over. Think of the canvas element as a magnifying glass that the user can move across the web page. But the actual effect I want the canvas element to produce is a color-filter (hence the need for the underlying colors).

like image 714
markE Avatar asked Jan 07 '13 19:01

markE


1 Answers

Can't be done w/ script+tricks. Maybe via a plugin

If you can set up a server-side browser to render pages for you - that might work.

like image 193
Scott Evernden Avatar answered Mar 03 '23 11:03

Scott Evernden