Import numpy as np import matplotlib.pyplot as plt from PIL import Image

Generation Data
Records
Prompts
Copy
import numpy as np
import matplotlib
.
pyplot as plt
from PIL import Image
,
ImageDraw
,
ImageFont
# Set up the canvas size
width
,
height = 800
,
600
image = Image
.
new('RGB'
,
(width
,
height)
,
(135
,
206
,
250)) # Sky blue background
draw = ImageDraw
.
Draw(image)
# Define the colors
roof_color = (139
,
69
,
19) # Brown
wall_color = (255
,
228
,
196) # Beige
window_color = (0
,
0
,
0) # Black
door_color = (139
,
69
,
19) # Brown
snow_color = (255
,
250
,
250) # White
tree_color = (34
,
139
,
34) # Forest green
mushroom_color = (255
,
140
,
0) # Orange
cloud_color = (255
,
255
,
255) # White
bridge_color = (165
,
42
,
42) # Brown
# Define the house dimensions
house_width = 150
house_height = 100
roof_height = 50
# Define the landscape
landscape_height = 400
tree_width = 50
tree_height = 100
tree_count = 25
mushroom_count = 15
bridge_width = 300
bridge_height = 50
# Draw the landscape
draw
.
rectangle((0
,
height - landscape_height
,
width
,
height)
,
fill=(34
,
139
,
34)) # Grass
# Draw the snow
draw
.
rectangle((0
,
height - landscape_height
,
width
,
height)
,
fill=snow_color)
# Draw the trees
for i in range(tree_count):
tree_x = np
.
random
.
randint(tree_width
,
width - tree_width)
tree_y = height - landscape_height + np
.
random
.
randint(0
,
landscape_height - tree_height)
draw
.
rectangle((tree_x
,
tree_y
,
tree_x + tree_width
,
tree_y + tree_height)
,
fill=tree_color)
# Draw the mushrooms
for i in range(mushroom_count):
mushroom_x = np
.
random
.
randint(tree_width
,
width - tree_width)
mushroom_y = height - landscape_height + np
.
random
.
randint(0
,
landscape_height - 50)
draw
.
ellipse((mushroom_x - 20
,
mushroom_y
,
mushroom_x + 20
,
mushroom_y + 40)
,
fill=mushroom_color)
draw
.
ellipse((mushroom_x - 10
,
mushroom_y + 20
,
mushroom_x + 10
,
mushroom_y + 40)
,
fill=(255
,
255
,
255))
# Draw the houses
house_spacing = 100
for i in range(5):
house_x = i * (house_width + house_spacing)
house_y = height - landscape_height - house_height
draw
.
rectangle((house_x
,
house_y
,
house_x +
INFO
Checkpoint & LoRA

Checkpoint
SeaArt Infinity
#Landscape
#Anime
#Scene Design
#SeaArt Infinity
0 comment
0
0
0