ctypes-rgb-values-0.10
توضیحات
Get rgb values at mouse position
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ctypes-rgb-values-0.10 |
| نام | ctypes-rgb-values |
| نسخه کتابخانه | 0.10 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Johannes Fischer |
| ایمیل نویسنده | <aulasparticularesdealemaosp@gmail.com> |
| آدرس صفحه اصلی | https://github.com/hansalemaos/ctypes_rgb_values |
| آدرس اینترنتی | https://pypi.org/project/ctypes-rgb-values/ |
| مجوز | MIT |
### 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),
....
"""
```
نیازمندی
| مقدار | نام |
|---|---|
| - | ansi |
نحوه نصب
نصب پکیج whl ctypes-rgb-values-0.10:
pip install ctypes-rgb-values-0.10.whl
نصب پکیج tar.gz ctypes-rgb-values-0.10:
pip install ctypes-rgb-values-0.10.tar.gz