### Get rgb values at mouse position
```python
pip install ctypes-rgb-values
from ctypes_rgb_values import get_rgb_values
cols = get_rgb_values(
sleeptime=0.0,
on_left_click=False, # if True: only captures when left mouse button is pressed
on_right_click=False, # if True: only captures when right mouse button is pressed
rgb_values=True, # if True: rgb will be returned
rgba_values=True, # if True: rgba will be returned
coords=True, # if True: coords of each color will be returned
time_value=True, # if True: time of each color change will be returned
)
# Press ctrl+c when you are done!
"""
[((107, 107, 107), (107, 107, 107, 0), (1356, 1051), 1671697419.8177068),
((99, 99, 99), (99, 99, 99, 0), (1357, 1049), 1671697419.8401546),
((99, 99, 99), (99, 99, 99, 0), (1359, 1041), 1671697419.8508923),
((99, 99, 99), (99, 99, 99, 0), (1361, 1038), 1671697419.8670166),
((99, 99, 99), (99, 99, 99, 0), (1363, 1033), 1671697419.8836083),
((99, 99, 99), (99, 99, 99, 0), (1364, 1029), 1671697419.9011772),
((99, 99, 99), (99, 99, 99, 0), (1365, 1028), 1671697419.9167929),
((99, 99, 99), (99, 99, 99, 0), (1365, 1028), 1671697419.9333844),
((99, 99, 99), (99, 99, 99, 0), (1365, 1028), 1671697419.9499762),
((99, 99, 99), (99, 99, 99, 0), (1365, 1028), 1671697419.9675448),
((117, 117, 117), (117, 117, 117, 0), (1365, 1028), 1671697419.9831607),
((117, 117, 117), (117, 117, 117, 0), (1365, 1028), 1671697420.0007331),
((117, 117, 117), (117, 117, 117, 0), (1365, 1028), 1671697420.0182958),
((117, 117, 117), (117, 117, 117, 0), (1365, 1028), 1671697420.0329359),
((117, 117, 117), (117, 117, 117, 0), (1365, 1028), 1671697420.0505047),
((117, 117, 117), (117, 117, 117, 0), (1365, 1028), 1671697420.0705392),
((250, 250, 250), (250, 250, 250, 0), (1368, 1027), 1671697420.0851743),
....
"""
```
Raw data
{
"_id": null,
"home_page": "https://github.com/hansalemaos/ctypes_rgb_values",
"name": "ctypes-rgb-values",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "ctypes,windows,rgb,screenshot",
"author": "Johannes Fischer",
"author_email": "aulasparticularesdealemaosp@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/15/a0/db0e37fb4193fba6b428485b4746aafc855c81375b41dc6cddb3e9590db8/ctypes_rgb_values-0.11.tar.gz",
"platform": null,
"description": "\r\n### Get rgb values at mouse position\r\n\r\n\r\n```python\r\npip install ctypes-rgb-values\r\n\r\nfrom ctypes_rgb_values import get_rgb_values\r\ncols = get_rgb_values(\r\n sleeptime=0.0,\r\n on_left_click=False, # if True: only captures when left mouse button is pressed\r\n on_right_click=False, # if True: only captures when right mouse button is pressed\r\n rgb_values=True, # if True: rgb will be returned\r\n rgba_values=True, # if True: rgba will be returned\r\n coords=True, # if True: coords of each color will be returned\r\n time_value=True, # if True: time of each color change will be returned\r\n)\r\n# Press ctrl+c when you are done!\r\n\r\n\"\"\"\r\n[((107, 107, 107), (107, 107, 107, 0), (1356, 1051), 1671697419.8177068),\r\n ((99, 99, 99), (99, 99, 99, 0), (1357, 1049), 1671697419.8401546),\r\n ((99, 99, 99), (99, 99, 99, 0), (1359, 1041), 1671697419.8508923),\r\n ((99, 99, 99), (99, 99, 99, 0), (1361, 1038), 1671697419.8670166),\r\n ((99, 99, 99), (99, 99, 99, 0), (1363, 1033), 1671697419.8836083),\r\n ((99, 99, 99), (99, 99, 99, 0), (1364, 1029), 1671697419.9011772),\r\n ((99, 99, 99), (99, 99, 99, 0), (1365, 1028), 1671697419.9167929),\r\n ((99, 99, 99), (99, 99, 99, 0), (1365, 1028), 1671697419.9333844),\r\n ((99, 99, 99), (99, 99, 99, 0), (1365, 1028), 1671697419.9499762),\r\n ((99, 99, 99), (99, 99, 99, 0), (1365, 1028), 1671697419.9675448),\r\n ((117, 117, 117), (117, 117, 117, 0), (1365, 1028), 1671697419.9831607),\r\n ((117, 117, 117), (117, 117, 117, 0), (1365, 1028), 1671697420.0007331),\r\n ((117, 117, 117), (117, 117, 117, 0), (1365, 1028), 1671697420.0182958),\r\n ((117, 117, 117), (117, 117, 117, 0), (1365, 1028), 1671697420.0329359),\r\n ((117, 117, 117), (117, 117, 117, 0), (1365, 1028), 1671697420.0505047),\r\n ((117, 117, 117), (117, 117, 117, 0), (1365, 1028), 1671697420.0705392),\r\n ((250, 250, 250), (250, 250, 250, 0), (1368, 1027), 1671697420.0851743),\r\n ....\r\n \"\"\"\r\n\r\n```\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Get rgb values at mouse position",
"version": "0.11",
"project_urls": {
"Homepage": "https://github.com/hansalemaos/ctypes_rgb_values"
},
"split_keywords": [
"ctypes",
"windows",
"rgb",
"screenshot"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "78ff347987e0def3d4f96beffe42e8cc8d959d7d4dfca4a168c550888d25fa5f",
"md5": "41dc36bc3c30eaa82f0cf78048a8e03e",
"sha256": "2a342d8e2fc308269667d79bfe0a793402d2bcc36c273d4197404e15891bcde0"
},
"downloads": -1,
"filename": "ctypes_rgb_values-0.11-py3-none-any.whl",
"has_sig": false,
"md5_digest": "41dc36bc3c30eaa82f0cf78048a8e03e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6625,
"upload_time": "2023-06-17T14:19:26",
"upload_time_iso_8601": "2023-06-17T14:19:26.103741Z",
"url": "https://files.pythonhosted.org/packages/78/ff/347987e0def3d4f96beffe42e8cc8d959d7d4dfca4a168c550888d25fa5f/ctypes_rgb_values-0.11-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "15a0db0e37fb4193fba6b428485b4746aafc855c81375b41dc6cddb3e9590db8",
"md5": "04ff83583587f795858fcf7a2ef8e993",
"sha256": "b36ce6e3cdc6d78202bda7823211b2c73c5262e1fa0b7bbf7173cf85340bc209"
},
"downloads": -1,
"filename": "ctypes_rgb_values-0.11.tar.gz",
"has_sig": false,
"md5_digest": "04ff83583587f795858fcf7a2ef8e993",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4528,
"upload_time": "2023-06-17T14:19:27",
"upload_time_iso_8601": "2023-06-17T14:19:27.645882Z",
"url": "https://files.pythonhosted.org/packages/15/a0/db0e37fb4193fba6b428485b4746aafc855c81375b41dc6cddb3e9590db8/ctypes_rgb_values-0.11.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-17 14:19:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hansalemaos",
"github_project": "ctypes_rgb_values",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "ctypes-rgb-values"
}