Starsheet
Generate pleasing images of a sky that doesn't exist.
A library and a cli binary.
The Future: A GUI, eventually, for fun!
Binary
Install with cargo install starsheet
and then run with starsheet
.
Currently, only PNGs will be output. You can change the --width with the -w flag, and the --height with -h. The amount of stars that are generated is a sort of density. The density, or number of --stars per 100 square pixels, can be changed with the -s option. I find that a good density is around 20.
Here is an example of a 1000x1000 image with a density
of 20. The command looked like this:
starsheet -w 1000 -h 1000 -s 20 example
There is currently no way to change the percentages of the stars brightness, but this is coming!
Library
The documentation is currently not too great! Good thing there's only one struct with like 5 methods. Documentation will be improved. Until then, you can have a look at the binary source here, or the example below.
use Space;
// Generates an image with the same parameters as the example image