https://github.com/8dcc/hl-png
Highlight PNG image
https://github.com/8dcc/hl-png
c libpng png sdl
Last synced: 3 days ago
JSON representation
Highlight PNG image
- Host: GitHub
- URL: https://github.com/8dcc/hl-png
- Owner: 8dcc
- License: gpl-3.0
- Created: 2024-06-10T15:58:30.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-01-01T10:07:25.000Z (4 months ago)
- Last Synced: 2025-04-25T10:56:46.675Z (8 days ago)
- Topics: c, libpng, png, sdl
- Language: C
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
#+title: hl-png
#+options: toc:nil
#+startup: showeverything
#+author: 8dcc*Highlight PNG image.*
#+TOC: headlines 2
* Description
This simple program allows you to open a PNG image and draw/highlight any
region.* Arguments and keybinds
The program expects an optional list of arguments, followed by a filename as its
*last* argument. These are the supported arguments.| Argument | Description |
|----------+-----------------------------------------------------------------------------------------------------------------|
| ~-f~ | Launch the program in full-screen mode |
| ~-F~ | Launch the program in /fixed/ mode (i.e. the window is not resizable). Might be useful for tiling window managers |
| ~-h~ | Show help and exit |From the program window, the following keybinds can be used.
| Key | Description |
|--------+------------------------------|
| ~LMouse~ | Draw in the window |
| ~Ctrl~ | If held, join lines together |
| ~c~ | Clear the drawing |
| ~g~ | Toggle the background grid |
| ~f~, ~F11~ | Toggle full-screen |* Building
You will need to install the =SDL2= and =libpng= libraries.
#+begin_src bash
# On debian-based distros
apt install libsdl2-dev libpng-dev# On arch-based distros
pacman -S sdl2 libpng
#+end_srcThen, you can build the project.
#+begin_src bash
git clone https://github.com/8dcc/hl-png
cd hl-png
make
#+end_src