From 0ccc8073852895996ed70c4b2a86c460e3a3ddae Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 22 Apr 2026 15:58:40 +0300 Subject: Remove weak comic style presets --- internal/comic/artist.go | 8 ------- internal/comic/comic_test.go | 4 ---- internal/comic/localization.go | 2 -- internal/comic/runner.go | 4 ---- internal/comic/types.go | 48 ++++++------------------------------------ 5 files changed, 6 insertions(+), 60 deletions(-) (limited to 'internal/comic') diff --git a/internal/comic/artist.go b/internal/comic/artist.go index 5aeccac..f58b56f 100644 --- a/internal/comic/artist.go +++ b/internal/comic/artist.go @@ -25,8 +25,6 @@ type ArtistConfig struct { CartoonStyles []string Action90sStyles []string MangaStyles []string - CyberpunkStyles []string - GoldenAgeStyles []string HorrorStyles []string WatercolorStyles []string Theme string @@ -55,8 +53,6 @@ type Artist struct { cartoonStyles []string action90sStyles []string mangaStyles []string - cyberpunkStyles []string - goldenAgeStyles []string horrorStyles []string watercolorStyles []string theme string @@ -110,8 +106,6 @@ func NewArtist(cfg *ArtistConfig) *Artist { a.cartoonStyles = append([]string(nil), cfg.CartoonStyles...) a.action90sStyles = append([]string(nil), cfg.Action90sStyles...) a.mangaStyles = append([]string(nil), cfg.MangaStyles...) - a.cyberpunkStyles = append([]string(nil), cfg.CyberpunkStyles...) - a.goldenAgeStyles = append([]string(nil), cfg.GoldenAgeStyles...) a.horrorStyles = append([]string(nil), cfg.HorrorStyles...) a.watercolorStyles = append([]string(nil), cfg.WatercolorStyles...) a.theme = cfg.Theme @@ -158,8 +152,6 @@ func (a *Artist) DrawComicPages(ctx context.Context, storyText, bible, titleSlug a.cartoonStyles, a.action90sStyles, a.mangaStyles, - a.cyberpunkStyles, - a.goldenAgeStyles, a.horrorStyles, a.watercolorStyles, a.styleMode, diff --git a/internal/comic/comic_test.go b/internal/comic/comic_test.go index 336de78..5e5058d 100644 --- a/internal/comic/comic_test.go +++ b/internal/comic/comic_test.go @@ -838,8 +838,6 @@ func TestDrawComicPagesUsesConfiguredStylePools(t *testing.T) { {name: "cartoon", styleMode: styleModeCartoon, wantStyle: "cartoon-ink"}, {name: "action90s", styleMode: styleModeAction90s, wantStyle: "action-ink"}, {name: "manga", styleMode: styleModeManga, wantStyle: "manga-ink"}, - {name: "cyberpunk", styleMode: styleModeCyberpunk, wantStyle: "cyberpunk-ink"}, - {name: "goldenAge", styleMode: styleModeGoldenAge, wantStyle: "golden-age-ink"}, {name: "horror", styleMode: styleModeHorror, wantStyle: "horror-ink"}, {name: "watercolor", styleMode: styleModeWatercolor, wantStyle: "watercolor-ink"}, } @@ -857,8 +855,6 @@ func TestDrawComicPagesUsesConfiguredStylePools(t *testing.T) { CartoonStyles: []string{"cartoon-ink"}, Action90sStyles: []string{"action-ink"}, MangaStyles: []string{"manga-ink"}, - CyberpunkStyles: []string{"cyberpunk-ink"}, - GoldenAgeStyles: []string{"golden-age-ink"}, HorrorStyles: []string{"horror-ink"}, WatercolorStyles: []string{"watercolor-ink"}, Language: "English", diff --git a/internal/comic/localization.go b/internal/comic/localization.go index 941e741..c3116fc 100644 --- a/internal/comic/localization.go +++ b/internal/comic/localization.go @@ -58,8 +58,6 @@ func localizedStylePrompt(style, language, script string) string { return "детска книжка с ярки, приветливи илюстрации и дебели контури" case "painterly oil-on-canvas comic with loose brushwork and vivid impressionist colors": return "живописен комикс с маслени щрихи и ярки импресионистични цветове" - case "cyberpunk neon art with glowing outlines, dark backgrounds, and electric accent colors": - return "киберпънк неонова визия с светещи контури, тъмни фонове и електрически акцентни цветове" case "ultra-realistic DSLR photography, cinematic 35mm lens, natural lighting, hyper-detailed textures": return "ултрареалистична фотография с кинематографичен 35 мм обектив, естествено осветление и силно детайлни текстури" case "cinematic still photography, golden-hour lighting, shallow depth of field, photojournalism quality": diff --git a/internal/comic/runner.go b/internal/comic/runner.go index 500350c..f3be5d9 100644 --- a/internal/comic/runner.go +++ b/internal/comic/runner.go @@ -44,8 +44,6 @@ type RunnerConfig struct { CartoonStyles []string Action90sStyles []string MangaStyles []string - CyberpunkStyles []string - GoldenAgeStyles []string HorrorStyles []string WatercolorStyles []string AspectRatio string @@ -102,8 +100,6 @@ func NewRunner(cfg *RunnerConfig) *Runner { CartoonStyles: cfg.CartoonStyles, Action90sStyles: cfg.Action90sStyles, MangaStyles: cfg.MangaStyles, - CyberpunkStyles: cfg.CyberpunkStyles, - GoldenAgeStyles: cfg.GoldenAgeStyles, HorrorStyles: cfg.HorrorStyles, WatercolorStyles: cfg.WatercolorStyles, Theme: cfg.Theme, diff --git a/internal/comic/types.go b/internal/comic/types.go index 5a3a111..0ef3999 100644 --- a/internal/comic/types.go +++ b/internal/comic/types.go @@ -95,21 +95,9 @@ var ( } defaultMangaStyles = []string{ - "authentic black-and-white shonen manga page style, right-to-left manga energy, screentone shading, manga speed lines, large expressive eyes, sharp angular hair, sweat drops, impact bursts, Japanese comic panel language, minimal western color", - "high-energy manga action style, monochrome ink, dense screentones, exaggerated emotional close-ups, chibi reaction inset where appropriate, motion blur lines, diagonal panel rhythm, dramatic sound-effect shapes", - "modern manga fantasy comic style, elegant anime-inspired character designs, big eyes, spiky hair silhouettes, black ink linework, grey screentone gradients, explosive action frames, cinematic close-ups", - } - - defaultCyberpunkStyles = []string{ - "cyberpunk neon comic style, rain-slick streets, glowing signage, chrome technology, high contrast shadows, electric cyan and magenta accents", - "tech-noir cyberpunk comic style, dense futuristic cityscapes, holograms, cybernetic details, saturated neon rim lighting", - "futuristic cyberpunk action comic style, laser-lit alleys, augmented heroes, digital glitches, saturated night colors, sharp ink silhouettes", - } - - defaultGoldenAgeStyles = []string{ - "golden age superhero comic style, clean heroic poses, bright primary colors, simple confident linework, optimistic mid-century adventure energy", - "vintage golden age comic book style, bold flat colors, classic caped hero staging, simple dramatic compositions, retro print texture", - "1940s superhero serial comic style, square-jawed heroes, clear action, hand-lettered poster energy, bright optimistic palette", + "true monochrome Japanese shonen manga page, black ink only with grey screentone, no western color rendering, large expressive anime eyes, sharp spiky hair silhouettes, sweat drops, impact bursts, speed-line backgrounds, exaggerated emotion close-ups, dynamic diagonal manga panel language", + "authentic serialized manga action art, crisp black linework, dense screentone gradients, white paper highlights, hand-drawn Japanese comic energy, chibi reaction inset where appropriate, dramatic sound-effect shapes, cinematic close-ups, no painterly western comic coloring", + "modern black-and-white manga fantasy style, anime character proportions, big eyes, angular hair, thin-to-thick ink strokes, patterned screentones, motion streaks, expressive face acting, explosive action frames, minimal color accents only if unavoidable", } defaultHorrorStyles = []string{ @@ -119,9 +107,9 @@ var ( } defaultWatercolorStyles = []string{ - "watercolor storybook comic style, soft washes, gentle ink outlines, luminous paper texture, warm hand-painted colors, whimsical atmosphere", - "delicate watercolor children's adventure style, airy backgrounds, expressive simple characters, pastel palette, soft brush edges", - "storybook watercolor fantasy comic style, transparent layered color, soft paper grain, tender expressions, dreamy illustrated settings", + "pure transparent watercolor storybook comic style, visible cold-press paper grain, watery pigment blooms, uneven wash edges, granulation, soft bleeding colors, pale layered washes, loose pencil underdrawing, no digital airbrush, no oil-paint texture, no glossy comic coloring", + "hand-painted watercolor children's adventure style, translucent pastel washes, wet-on-wet skies, dry-brush texture, white paper highlights, delicate ink-and-pencil outlines, puddled pigment edges, airy negative space, gentle low-contrast rendering", + "storybook watercolor fantasy comic style, washed paper texture, transparent layered color, soft backruns and blossoms, feathered brush edges, muted handmade palette, tender expressions, dreamy illustrated settings, visibly painted on paper", } realisticStyles = defaultRealisticStyles @@ -129,8 +117,6 @@ var ( cartoonStyles = defaultCartoonStyles action90sStyles = defaultAction90sStyles mangaStyles = defaultMangaStyles - cyberpunkStyles = defaultCyberpunkStyles - goldenAgeStyles = defaultGoldenAgeStyles horrorStyles = defaultHorrorStyles watercolorStyles = defaultWatercolorStyles @@ -149,8 +135,6 @@ const ( styleModeCartoon = "cartoon" styleModeAction90s = "action_90s" styleModeManga = "manga" - styleModeCyberpunk = "cyberpunk" - styleModeGoldenAge = "golden_age" styleModeHorror = "horror" styleModeWatercolor = "watercolor" ) @@ -214,8 +198,6 @@ func pickStyleMode(forcedUltra *bool) string { styleModeCartoon, styleModeAction90s, styleModeManga, - styleModeCyberpunk, - styleModeGoldenAge, styleModeHorror, styleModeWatercolor, } @@ -228,8 +210,6 @@ func pickStyle( cartoonStyles, action90sStyles, mangaStyles, - cyberpunkStyles, - goldenAgeStyles, horrorStyles, watercolorStyles []string, mode string, @@ -267,22 +247,6 @@ func pickStyle( return "" } return mangaStyles[rand.IntN(len(mangaStyles))] - case styleModeCyberpunk: - if len(cyberpunkStyles) == 0 { - cyberpunkStyles = defaultCyberpunkStyles - } - if len(cyberpunkStyles) == 0 { - return "" - } - return cyberpunkStyles[rand.IntN(len(cyberpunkStyles))] - case styleModeGoldenAge: - if len(goldenAgeStyles) == 0 { - goldenAgeStyles = defaultGoldenAgeStyles - } - if len(goldenAgeStyles) == 0 { - return "" - } - return goldenAgeStyles[rand.IntN(len(goldenAgeStyles))] case styleModeHorror: if len(horrorStyles) == 0 { horrorStyles = defaultHorrorStyles -- cgit v1.2.3