Here are two easy ways to get a purple-themed game cover with the title “Hra Verčiny naroděninky.” Pick whichever suits you best!
- Python + Pillow (PIL)
from PIL import Image, ImageDraw, ImageFont
# 1) Create canvas
W, H = 1200, 800
img = Image.new("RGB", (W, H), color=0)
draw = ImageDraw.Draw(img)
# 2) Draw purple gradient background
for y in range(H):
# interpolate between two purples
top_color = (106, 13, 173) # #6a0dad
bottom_color = (216, 176, 255) # #d8b0ff
r = int(top_color[0] + (bottom_color[0] - top_color[0]) * (y/H))
g = int(top_color[1] + (bottom_color[1] - top_color[1]) * (y/H))
b = int(top_color[2] + (bottom_color[2] - top_color[2]) * (y/H))
draw.line([(0,y), (W,y)], fill=(r,g,b))
# 3) Load a fun font (make sure you have it installed or provide path)
try:
font = ImageFont.truetype("arial.ttf", size=100)
except IOError:
font = ImageFont.load_default()
# 4) Draw centered text with a subtle shadow
text = "Hra Verčiny naroděninky"
w, h = draw.textsize(text, font=font)
x, y = (W - w) // 2, (H - h) // 2
# shadow
draw.text((x+4, y+4), text, font=font, fill=(0,0,0,128))
# main text
draw.text((x, y), text, font=font, fill=(255, 255, 255))
# 5) Save it
img.save("hra_verciny_cover.png")
print("Saved cover as hra_verciny_cover.png")
Run this script and you’ll get a 1200×800 PNG with a smooth purple gradient and bold white title.
- Pure HTML/CSS Preview
If you just want to prototype in a browser, paste this into an HTML file:
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8">
<title>Game Cover Preview</title>
<style>
body, html {
margin: 0; padding: 0;
width: 100%; height: 100%;
display: flex; align-items: center; justify-content: center;
background: #222;
}
.cover {
width: 800px; height: 500px;
background: linear-gradient(to bottom right, #6a0dad, #d8b0ff);
display: flex; align-items: center; justify-content: center;
border: 8px solid #450a75;
box-shadow: 0 0 20px rgba(0,0,0,0.6);
}
.cover h1 {
font-family: 'Comic Sans MS', cursive, sans-serif;
font-size: 3em;
color: #fff;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
</style>
</head>
<body>
<div class="cover">
<h1>Hra Verčiny naroděninky</h1>
</div>
</body>
</html>
Open it in your browser and you’ll see a neat purple box with your game title centered in white.
🎨 Feel free to tweak:
• Font choice & size
• Gradient stops or solid purple (#800080, #9932CC, #BA55D3…)
• Shadows, borders, patterns
Let me know if you’d like further styling—icons, character art placeholders, or anything else!