Spaces:
Running on Zero
Running on Zero
Clean up forest background artifacts
Browse files
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(
|
| 645 |
x = rng.randint(0, spec.width)
|
| 646 |
-
y = rng.randint(horizon
|
| 647 |
-
stem = rng.randint(
|
| 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 -
|
| 651 |
-
for _ in range(
|
| 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))
|