/cloud

Generates cloud images.

Primary LanguageZigOtherNOASSERTION

Cloud: generates clouds

Creates a random image of a cloud from a procedurally generated noise.

A generated cloud

Credits and Licenses

The noise library (src/noise.zig) is a port of KdotJPG OpenSimplex2 noise.

The png library (src/png.zig) is a port of Michael Schwars libattopng.

The main file (src/main.zig) is written from scratch.

  • ISC license.

Build and install

You will need the stable zig release (version 0.12). To build and install in $HOME/.local/bin/cloud, run:

zig build -Doptimize=ReleaseSafe -p $HOME/.local/

usage

$ cloud [options]
    -s <seed> (default to std.time.timestamp())
    -w <width> (default to 512)
    -h <height> (default to 512)
    -b <backround-color> (default to 0088ee)
    -f <foreground-color> (default to ffffff)
    -o <outputfile> (default to cloud.png)