White Noise Generator
A simple CLI applet written in Go
to create pictorial representations of White Noise.
Example
Okay, but how?
An output file of type .pgm
in plain text (with valid headers) is created and that is, in fact, a Portable GrayMap. You may read more here.
Download
- Zip Download
- Manual download
$ git clone [email protected]:michalspano/white-noise.git && cd white-noise
Execute
A compiled binary is available for Linux
and MacOS
systems.
$ .bin/wnoise <...>
Manual execution is also available.
$ go run src/wnoise.go <...>
Windows support
Windows users may use the .exe
binary that is compiled for Windows
with a shell script.
64-bit version
$ bash .win/.win_64-bit.sh
32-bit version
$ bash .win/.win_32-bit.sh
Note: The .exe
binaries for Windows
will be stored in the bin
folder.
Usage
Default use
$ ./wnoise <width> <height>
Custom use
Used to specify a custom output path with a custom name of the output file.
$ ./wnoise <width> <height> -d <output_path>
Help flag
See additional help.
$ ./wnoise <width> <height> -h