random-stuff/fractalart-rs
osmarks dacc2b19e5 minor tweak 2023-06-27 14:28:00 +01:00
..
src minor tweak 2023-06-27 14:28:00 +01:00
.gitignore New things, documentation 2021-04-08 16:28:33 +01:00
Cargo.lock New things, documentation 2021-04-08 16:28:33 +01:00
Cargo.toml fractalart things 2021-04-10 19:31:25 +01:00
README.md New things, documentation 2021-04-08 16:28:33 +01:00

README.md

FractalArt-rs

This is this "fractal" wallpaper thing, ported to Rust and with significant performance improvements and more configuration. It is lacking the set-as-wallpaper feature of the original, but it should be possible to put this in a shellscript or something with whatever works on your platform.

Usage

Compile via cargo build --release. The resulting binary is in target/release/fractalart. With no other arguments, it will generate a 1000x1000 image and save it to out.png. You can use -W/-H/-o to change that. The initial seed color can also be configured with -u (hue; this will default to a randomly generated one), -s and -l. The random seed is set with -r; if the other parameters are the same, then the same seed will give the same image. Images generated by this are slightly different to the original program's because of the use of 16-bit integers instead of floats (it might actually be possible to go down to u8s without quality problems, but I haven't tried), and also the different default variance (-v); the original program hardcodes this to the equivalent of 1573, but I picked 2048, as a rounder number.