Skip to main content

Get rgb values at mouse position

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),
 ....
 """

Metadata

Release files for ctypes-rgb-values 0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ctypes-rgb-values 0.11
File Size Uploaded Provenance Actions
ctypes_rgb_values-0.11.tar.gz 4.5 kB Without provenance Details for ctypes_rgb_values-0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ctypes-rgb-values 0.11
File Interpreter ABI Platform Actions
ctypes_rgb_values-0.11-py3-none-any.whl Python 3 none any Details for ctypes_rgb_values-0.11-py3-none-any.whl

Total release size: 11.2 kB

Release files / ctypes_rgb_values-0.11.tar.gz

Download URL ctypes_rgb_values-0.11.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b36ce6e3cdc6d78202bda7823211b2c73c5262e1fa0b7bbf7173cf85340bc209
BLAKE2b-256 checksum
How to use checksums
15a0db0e37fb4193fba6b428485b4746aafc855c81375b41dc6cddb3e9590db8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / ctypes_rgb_values-0.11-py3-none-any.whl

Download URL ctypes_rgb_values-0.11-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a342d8e2fc308269667d79bfe0a793402d2bcc36c273d4197404e15891bcde0
BLAKE2b-256 checksum
How to use checksums
78ff347987e0def3d4f96beffe42e8cc8d959d7d4dfca4a168c550888d25fa5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for ctypes-rgb-values 0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.11 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page