LeafCat79 commited on
Commit
cad6c7b
·
verified ·
1 Parent(s): 181fa20

Clean up forest background artifacts

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -641,14 +641,14 @@ def draw_background(spec: AssetSpec, rng: random.Random) -> bytes:
641
  ],
642
  fill=path_color,
643
  )
644
- for _ in range(40):
645
  x = rng.randint(0, spec.width)
646
- y = rng.randint(horizon - 8, spec.height - 16)
647
- stem = rng.randint(6, 18)
648
  draw.line((x, y + stem, x, y), fill=(43, 109, 53, 210), width=2)
649
  petal = rng.choice(colors) + (230,)
650
- draw.ellipse((x - 5, y - 4, x + 5, y + 6), fill=petal)
651
- for _ in range(12):
652
  x = rng.randint(-40, spec.width)
653
  y = rng.randint(horizon - 35, horizon + 20)
654
  draw.ellipse((x, y, x + rng.randint(65, 140), y + rng.randint(36, 72)), fill=(42, 121, 64, 185))
 
641
  ],
642
  fill=path_color,
643
  )
644
+ for _ in range(18):
645
  x = rng.randint(0, spec.width)
646
+ y = rng.randint(horizon + 48, spec.height - 18)
647
+ stem = rng.randint(5, 12)
648
  draw.line((x, y + stem, x, y), fill=(43, 109, 53, 210), width=2)
649
  petal = rng.choice(colors) + (230,)
650
+ draw.ellipse((x - 4, y - 3, x + 4, y + 5), fill=petal)
651
+ for _ in range(10):
652
  x = rng.randint(-40, spec.width)
653
  y = rng.randint(horizon - 35, horizon + 20)
654
  draw.ellipse((x, y, x + rng.randint(65, 140), y + rng.randint(36, 72)), fill=(42, 121, 64, 185))