https://github.com/animenosekai/averagecolor
Get the screen average color in python
https://github.com/animenosekai/averagecolor
Last synced: about 2 months ago
JSON representation
Get the screen average color in python
- Host: GitHub
- URL: https://github.com/animenosekai/averagecolor
- Owner: Animenosekai
- License: mit
- Archived: true
- Created: 2020-05-27T09:47:21.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-29T15:52:49.000Z (about 5 years ago)
- Last Synced: 2025-02-23T01:44:15.739Z (4 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ScreenAverageColor
Get the screen average color in python### Dependencies
This program is written in Python 3.- Pillow
- pyautoguiYou can both install them via **`PIP`**
> `pip install Pillow`> `pip install pyautogui`
### Usage
You just need to launch the script `average_screen_color.py`You may get a warning but it should work.
Instead of double clicking the script (which could not work if you are on macOS for example), I recommend you opening your terminal/command prompt in the script's folder (you can use the command cd to go to the script folder on UNIX-based system (i.e. macOS or Linux)).
Then you should be able to do `python3 average_screen_color.py` to run the script.
### Commands/ArgumentsWhile opening the script (`python3 average_screen_color.py`), you can pass it an option a number: the refresh rate.
This refresh rate determines the number of times a block of color is added before refreshing the window (Setting this number too high will result in a performance decrease).
For example: `python3 average_screen_color.py 15`.