-
Notifications
You must be signed in to change notification settings - Fork 3
The number of blocks in an avatar is sometimes wrong #3
Copy link
Copy link
Open
Description
Sometimes the generated avatars will have extra or missing blocks in them (e.g. 6 blocks when you asked for 5, or 5 blocks when you asked for 6).
Block placement is RNG so reproducing may take several runs. Run this a few times and eventually you will get an image with more or less than than 6 blocks:
$ python3 example.py 420 6 avatar_6_blocks.pngIt is not isolated to even numbers, using an odd number 5 and the same issue will be seen:
$ python3 example.py 420 5 avatar_5_blocks.pngThe problem is caused by how the generator creates vertically symmetrical images and dealing with "central" blocks that don't need an opposing block to ensure symmetry. The generator needs to be smarter about where to place blocks to ensure the avatar has the correct number of blocks but still maintains the vertical symmetry.
Reactions are currently unavailable