Skip to content

v0.4.0

Compare
Choose a tag to compare
@zeh zeh released this 21 Dec 15:53
· 77 commits to dev since this release

This version was aimed at polishing existing functionality, but a few new features were added as well.

Change log

  • Fixed: errors when randomizing vertical rectangle positions on non-square images for the "rects" painter
  • Fixed: errors during painting on a separate thread properly now cause the application to abort, rather than explode into infinite error messages
  • Changed: the printed output is less verbose, as it doesn't write a new line for every successful generation anymore
  • Changed: any scale parameter can also be expressed in percentage units; --color-seed 0.5 is the same as --color-seed 50%, for example
  • Changed: new internal PRNG module to allow for deterministic randomization
  • Added: new --rng-seed parameter that can be used to seed a new pseudo-random number generation and get repeatable images. The used seed is printed in the terminal and added to the generated file as metadata
  • Added: new --margins parameter that allows setting side margins of the generated image. Values can also be negative to allow for bleeding
  • Added: all parameters that take values for randomization also allow a "weight" value via @. For example, if you want to use painter widths of either 10px and 20px, but to use wider ones 5 times more often, you can do --painter-width 10 20@5 to give a "weight" of 5 to the value of 20 (in other words, the width will be set at 10 1/6th of the time, and to 20 5/6ths of the time). The default weight for values without one is 1.
  • Added: new -d/--diff parameter to set a target percentage for image generation; this takes a float value or a percentage
  • Added: when printing the output, we also show an estimate of how much time is left for the generation to end based on target parameters when using -d/-diff, -t/--max_tries, or -g/--generations