An open API service indexing awesome lists of open source software.

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)

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 time

sc = 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)
```