A small programm for showing colorbars.
Find a file
2025-03-26 19:07:18 +01:00
.gitignore update .gitignore 2021-05-03 18:27:06 +02:00
colorbar.c sanitize behaviour of PLUS/MINUS-keys 2025-03-26 18:43:23 +01:00
Makefile update Makefile 2025-03-26 18:54:22 +01:00
PKGBUILD push version to 20250326.1 2025-03-26 19:07:18 +01:00
PKGBUILD.static push version to 20250326.1 2025-03-26 19:07:18 +01:00
README.md fix typo 2024-05-08 20:55:42 +02:00

colorbar

colorbar shows colorbars. I wrote it to allow a basic configuration of my new BenQ monitor. This monitor doesn't allow to set R/B/G-values individually when connected via HDMI. With the images shown by colorbar it is possible, to set brightness and contrast to a good starting point before further calibration with a colorimeter.

It is guaranteed, that

  • the colorbars are all of exactly the same width and height
  • the lowest intensity is always 0 (black)
  • the highest intensity is always 255 (white for RGB)
  • the intensity increases in equal steps vom 0 to 255

The program needs the libgrx library compiled and installed, with png-support included.

Compiling

On Linux:

  • make: create a dynamically linked executable.
  • make TARGET=static: create an executable with libgrx statically linked in.
  • make TARGET=mingw: create a windows executable with libgrx statically linked in.

Executing

usage: colorbar [-h|--help]

while running:

| key                  | action                       |
| -------------------- | ---------------------------- |
| j/n/right/down/space | next image                   |
| pagedown/end         | last image                   |
| pageup/home          | first image                  |
| k/p/left/up          | previous image               |
| h                    | show horizontal bars         |
| v                    | show vertical bars           |
| q                    | quit                         |
| esc                  | restore start parameters     |
| s/w                  | save current image as png    |
| plus                 | increase number of colorbars |
| minus                | decrease number of colorbars |

| mouse event          | action                       |
| -------------------- | ---------------------------- |
| left button          | next image                   |
| shift left button    | prev image                   |
| right button         | switch hor./vert. bars       |
| shift right button   | restore start parameters     |
| middle button        | quit                         |
| wheel up             | increase number of colorbars |
| wheel down           | decrease number of colorbars |