mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-21 05:33:45 -04:00
generate-alt-random: sixel: emit at least 4 color bands
This fixes an issue where there was a relatively high chance of not emitting any color bands at all, causing the final image size to be too small.
This commit is contained in:
parent
f3bc5a95b5
commit
a8186351d1
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ def main():
|
||||||
out.write(f'#{idx};2;{random.randrange(101)};{random.randrange(101)};{random.randrange(101)}')
|
out.write(f'#{idx};2;{random.randrange(101)};{random.randrange(101)};{random.randrange(101)}')
|
||||||
|
|
||||||
for row in range(six_rows):
|
for row in range(six_rows):
|
||||||
band_count = random.randrange(32)
|
band_count = random.randrange(4, 33)
|
||||||
for band in range(band_count):
|
for band in range(band_count):
|
||||||
# Choose a random color
|
# Choose a random color
|
||||||
out.write(f'#{random.randrange(256)}')
|
out.write(f'#{random.randrange(256)}')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue