Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
/ colorbase Public archive

Commit

Permalink
fixed closing bug, final release
Browse files Browse the repository at this point in the history
  • Loading branch information
telekrex committed Oct 26, 2024
1 parent e4eb157 commit 9ef20cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Colorbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ def update_display():
clock.tick(tps)
for event in pygame.event.get():
# checking for input events
if event.type == pygame.QUIT:
# on window close, exit application
r = False
sys.exit()
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_SPACE:
# on SPACE, toggle fullscreen/
Expand Down
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@

## Installation
A few options:
- Visit https://github.com/telekrex/colorbase/releases for executable downloads. Once downloaded, the executable (file) can be run from anywhere.
- Or clone repository, install `requirements.txt`, and run the build script for the platform you're using to compile it yourself.
- Or you can run `Colorbase.py` from a terminal, provided you have installed `requirements.txt`.

> On Linux, you may have to apply permissions to the executable file.
- Visit https://github.com/telekrex/colorbase/releases for executable Windows downloads.
- For Linux, clone the repository https://github.com/telekrex/colorbase and install `requirements.txt`. Then you can either run `python Colorbase.py`, or use `build-linux.sh` to compile a binary for yourself.

## How to Use
Simply run the script or executable. It will display colors in fullscreen, starting with white. Press SPACE to toggle fullscreen, press ENTER to cycle through colors, press ESC to quit.
Simply run the script or executable. It will display colors in fullscreen, starting with white. Press SPACE to toggle fullscreen, press ENTER to cycle through colors, press ESC or close window to quit.

0 comments on commit 9ef20cb

Please sign in to comment.