2025-06-04 15:20:34 +02:00
2025-06-04 14:44:24 +02:00
2025-06-04 15:11:43 +02:00
2025-06-03 20:07:24 +02:00
2025-06-04 14:44:24 +02:00
2025-06-04 14:44:24 +02:00
2025-06-04 15:20:34 +02:00

margen

generate a marble-like pattern bitmap image, blazing fast.

Written in pure C without librairies.

Install

You only need gcc and make.

git clone https://github.com/klemek/margen
cd margen
make clean build install
# margen is now installed in ~/.local/bin

CLI arguments

usage: margen [--help] [-q] [-w=WIDTH] [-h=HEIGHT] [-o=PATH] [--seed=SEED][-p=PIXEL_SIZE] [-s=SLOPE] [-c=R,G,B] [-v=R,G,B] [-m]

generate a marble-like pattern bitmap image, blazing fast.

options:
  --help             show this help message and exit
  -q, --quiet        do not print to console
  -w, --width        image width (default: 1920)
  -h, --height       image height (default: 1080)
  -o, --output       output file (default: output.bmp)
  -seed              random seed (default: time based)
  -p, --pixel        pixel size (default: random)
  -s, --slope        slope [0-255] (default: random)
  -c, --color        base color [0-255,0-255,0-255] (default: random)
  -v, --variation    base variation [0-255,0-255,0-255] (default: random)
  -m, --monochrome   black & white generation

TODO

  • fix monochrome
  • select corner (currently bottom left)
  • better starting parameters for convergeance
  • add range arg for variation
  • add timer
S
Description
Marble-like pattern generator, blazing fast
Readme 35 MiB
v1.2.6 Latest
2025-09-24 16:12:04 +02:00
Languages
C 92.7%
Shell 3.6%
Makefile 2%
M4 1.7%