Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dlozeve/bqn-graphics
A collection of graphics-related tools for BQN
https://github.com/dlozeve/bqn-graphics
bqn graphics
Last synced: 29 days ago
JSON representation
A collection of graphics-related tools for BQN
- Host: GitHub
- URL: https://github.com/dlozeve/bqn-graphics
- Owner: dlozeve
- License: bsd-3-clause
- Created: 2023-03-16T21:13:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-18T17:44:11.000Z (over 1 year ago)
- Last Synced: 2024-08-04T00:12:01.360Z (4 months ago)
- Topics: bqn, graphics
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
- awesome-bqn - bqn-graphics
README
* BQN Graphics
A collection of graphics-related tools for [[https://mlochbaum.github.io/BQN/][BQN]].
** Generate [[https://netpbm.sourceforge.net/doc/pnm.html][PNM]] images
- [[https://netpbm.sourceforge.net/doc/pbm.html][PBM]] (black and white)
- [[https://netpbm.sourceforge.net/doc/pgm.html][PGM]] (grayscale)
- [[https://netpbm.sourceforge.net/doc/ppm.html][PPM]] (color)** Utilities for color management
- Convert HSV colors to RGB
- Various colormaps (magma, inferno, plasma, and viridis)** Examples
You need =pnmtopng= from [[https://netpbm.sourceforge.net/doc/index.html][netpbm]], =convert= from [[https://imagemagick.org/][ImageMagick]], and =bqn= on your =PATH=.
#+begin_src sh
cd examples
make all
#+end_src[[./examples/gcdgrid.png]]
[[./examples/hsv.png]]
[[./examples/gradient.png]][[./examples/random_pbm.png]]
[[./examples/random_pgm.png]]
[[./examples/random_ppm.png]]