https://github.com/nichind/screencolor
Simple Python library to get average color of monitor(s)
https://github.com/nichind/screencolor
Last synced: 2 months ago
JSON representation
Simple Python library to get average color of monitor(s)
- Host: GitHub
- URL: https://github.com/nichind/screencolor
- Owner: nichind
- License: mit
- Created: 2024-03-07T08:47:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-25T12:11:27.000Z (about 1 year ago)
- Last Synced: 2025-03-01T19:48:56.928Z (3 months ago)
- Language: Python
- Homepage: https://pypi.org/project/screencolor/
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ScreenColor
Simple Python library to get average color of monitor(s)
## Installation
```
pip install screencolor
```## Usage/Examples
Get average screen color every 5 seconds
```python
from screencolor import ScreenColor
import threading
import timesc = ScreenColor(monitor_id=-1)
# Start refresh color loop
threading.Thread(target=sc.start_loop).start()# Print monitor color every 5 seconds
while True:
print(sc.get(rgb=False))
time.sleep(5)
```