Narrow books in the bookshelf, so it's more obvious as a bookshelf
authorAlex Chan <alex@alexwlchan.net>
Mon, 21 Dec 2020 19:23:01 +0000 (19:23 +0000)
committerAlex Chan <alex@alexwlchan.net>
Mon, 21 Dec 2020 19:23:01 +0000 (19:23 +0000)
scripts/generate_bookshelf.py

index 888afb2..a4d21c1 100755 (executable)
@@ -17,7 +17,7 @@ def get_bins(total_width, min_height, max_height):
     x_coord = 0
 
     while x_coord <= total_width:
-        width = R.randint(8, 40)
+        width = R.randint(4, 28)
         height = R.randint(min_height, max_height)
 
         yield [(x_coord, 0), (x_coord + width, height)]