1
0
Fork
You've already forked cloud
0
generates images of clouds
  • Zig 100%
Find a file
2024年07月01日 21:18:20 +02:00
src Add License. 2024年07月01日 21:10:32 +02:00
.gitignore initial commit. 2024年01月30日 18:52:24 +01:00
build.zig initial commit. 2024年01月30日 18:52:24 +01:00
cloud.png Add screenshot. 2024年07月01日 21:10:57 +02:00
LICENSE Add License. 2024年07月01日 21:10:32 +02:00
readme.md readme.md: typo fixes. 2024年07月01日 21:18:20 +02:00

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)