[英]How can I implement a Javascript color picker
I'm contemplating the development of a component for picking color off of a web page. 我正在考虑开发用于从网页上挑选颜色的组件。 This is NOT a color selection component which allows you to choose a specific color off of a color wheel or pallete. 这不是颜色选择组件,它不允许您从色轮或调色板中选择特定颜色。 I'm referring to a component which will provide me with a crosshair to click o nthe specific spot on the page and "pick" the color under it. 我指的是一个组件,该组件将为我提供十字准线以单击页面上的特定位置并“拾取”其下方的颜色。 I know, on the web, this is very complex. 我知道,在网络上,这非常复杂。 I couldn't find an existing component nor think of a good way to implement this other than complex markup inspection and image inspection. 除了复杂的标记检查和图像检查之外,我找不到现有的组件,也没有想办法实现这一点。
Any pointers? 有指针吗?
Firefox有一个名为“ ColorZilla”的加载项,请检查出来。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.