Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nqpz/squarezoom
A neat little expanding square world
https://github.com/nqpz/squarezoom
futhark
Last synced: 26 days ago
JSON representation
A neat little expanding square world
- Host: GitHub
- URL: https://github.com/nqpz/squarezoom
- Owner: nqpz
- License: gpl-3.0
- Created: 2023-07-15T18:04:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-09T12:34:56.000Z (about 1 year ago)
- Last Synced: 2024-03-18T17:25:42.432Z (8 months ago)
- Topics: futhark
- Language: Futhark
- Homepage:
- Size: 582 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# squarezoom
Zoom in and out of a neat little random square world.
![Screenshot](screenshot.png)
Requires [Futhark](http://futhark-lang.org) and SDL2 and SDL2-ttf
libraries with associated header files.## Building and running
First run `futhark pkg sync` once.
## Controls
- Mouse wheel scroll: Zoom in/out.
- Left click and hold: Move around.
- Right click: Automatic zoom.
- Right click and mouse wheel scroll: Adjust automatic zoom speed.
- `ESC`: Exit the program.
- `F1`: Toggle the text in the upper-left corner.
- `h`: View in the HSV color space (default).
- `o`: View in the Oklab color space.
- `g`: View as grayscale.
- `r`: Generate a new world.## `squarezoom-random`
Run `make && ./squarezoom-random/squarezoom-random -R -w 1024 -h 1024`
(or other powers of two) to build and run in a window.## `squarezoom-image`
Run `make && ./squarezoom-image/squarezoom-image -R image.jpg
(or other powers of two) to build and run in a window.To build without the FreeImage dependency, instead run
`SQUAREZOOM_NO_FREEIMAGE=1 make`. This means you will only be able to
read and write images in the Netpbm PAM format. You can use
ImageMagick's `convert` utility to convert from and to this format.