Skip to content

dlozeve/bqn-graphics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BQN Graphics

A collection of graphics-related tools for BQN.

Generate PNM images

  • PBM (black and white)
  • PGM (grayscale)
  • PPM (color)

Utilities for color management

  • Convert HSV colors to RGB
  • Various colormaps (magma, inferno, plasma, and viridis)

Examples

You need pnmtopng from netpbm, convert from ImageMagick, and bqn on your PATH.

cd examples
make all

./examples/gcdgrid.png

./examples/hsv.png ./examples/gradient.png

./examples/random_pbm.png ./examples/random_pgm.png ./examples/random_ppm.png

About

A collection of graphics-related tools for BQN

Topics

Resources

License

Stars

Watchers

Forks