fix(03): soft radial mask for forest elements and green background prompt
- CSS radial-gradient mask for organic blending into forest scene - Generate with light green background instead of transparency (avoids checkerboard) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -115,7 +115,7 @@ async function generateForestElement(db: IDBDatabase): Promise<{
|
|||||||
ELEMENT_TYPES[Math.floor(Math.random() * ELEMENT_TYPES.length)]!;
|
ELEMENT_TYPES[Math.floor(Math.random() * ELEMENT_TYPES.length)]!;
|
||||||
|
|
||||||
// Build prompt
|
// Build prompt
|
||||||
const prompt = `Kinderbuch-Illustration, Aquarell-Stil, ${elementType}, magischer Wald, warm, einladend, fuer Kinder, Pastellfarben, kein Text, einzelnes Element auf transparentem Hintergrund`;
|
const prompt = `Kinderbuch-Illustration, Aquarell-Stil, ${elementType}, magischer Wald, warm, einladend, fuer Kinder, Pastellfarben, kein Text, einfarbig heller gruener Hintergrund`;
|
||||||
|
|
||||||
// Generate image
|
// Generate image
|
||||||
const blob = await generateImage(prompt, referenceImages, config);
|
const blob = await generateImage(prompt, referenceImages, config);
|
||||||
|
|||||||
+4
-2
@@ -417,9 +417,11 @@ h3 {
|
|||||||
.forest__element img {
|
.forest__element img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
object-fit: contain;
|
object-fit: cover;
|
||||||
border-radius: 8px;
|
border-radius: 50%;
|
||||||
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
|
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
|
||||||
|
mask-image: radial-gradient(ellipse 70% 70% at center, black 50%, transparent 100%);
|
||||||
|
-webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 50%, transparent 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.forest__element--new {
|
.forest__element--new {
|
||||||
|
|||||||
Reference in New Issue
Block a user