#!/bin/bash
# Showcase J: Geometric & Digital Patterns Pack
# 10 prompts - asemic text, CGA dithering, VHS, circuits, tessellation

set -e

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
OUTPUT_DIR="$SCRIPT_DIR/../renders/showcase-geometric-$(date +%Y%m%d)"

mkdir -p "$OUTPUT_DIR"

echo "Showcase J: Geometric & Digital Patterns Pack..."
echo "Output: $OUTPUT_DIR"

generate() {
    local prompt="$1"
    local prefix="$2"
    bash "$SCRIPT_DIR/../../shared/scripts/cf-generate-wp.sh" "$prompt" "$OUTPUT_DIR" "$prefix" 8
}

# J1: Asemic Text
generate "Asemic corrupted kanji melting into abstract glitch symbols. Digital calligraphy decay. 1920x1080 widescreen. Vertical text flows downward like digital waterfalls. Kanji and characters melt into unreadable glitch symbols. CGA palette magenta and cyan letterforms corrupt and merge. Wet street reflects unreadable data. Empty mysterious atmosphere. Typography corruption meets pixel sorting. 1920x1080 widescreen." "showcase_J_asemic"

# J2: CGA Dithering
generate "CGA 4-color dithering crosshatch patterns magenta cyan black white. Retro computer aesthetic. 1920x1080 widescreen. Heavy crosshatch patterns create CGA color reproduction. Magenta and cyan with black and white. Retro DOS aesthetic. Dithered gradients. Digital color depth limitation. Empty cyberpunk scene with CGA banding. 1920x1080 widescreen." "showcase_J_cga"

# J3: VHS Tracking
generate "VHS tracking errors horizontal noise purple scan artifacts. Analog corruption. 1920x1080 widescreen. Horizontal noise bands and tracking errors. Purple scan lines across image. Analog video degradation. Magnetic tape corruption. Old VHS aesthetic. Glitch artifacts from analog media. 1920x1080 widescreen." "showcase_J_vhs"

# J4: Phosphor CRT
generate "Phosphor CRT glow green terminal burn-in ghosting. Retro monitor aesthetic. 1920x1080 widescreen. Green phosphor text terminal burn-in. Ghost image persistence on screen. CRT monitor aesthetic. Retro computer terminal. Green phosphor glow. Digital decay from CRT technology. 1920x1080 widescreen." "showcase_J_phosphor"

# J5: Circuit Patterns
generate "Circuit board patterns cyan traces geometric chip layouts. Electronic mandala. 1920x1080 widescreen. Traces and pathways creating geometric patterns. Cyan circuits on dark background. Electronic mandala like complexity. Circuit board aesthetic. PCB patterns. Digital geometry from electronics. 1920x1080 widescreen." "showcase_J_circuit"

# J6: Hexagonal Tiling
generate "Hexagonal tiling honeycomb structure magenta cells. Geometric tessellation. 1920x1080 widescreen. Hexagonal honeycomb pattern. Magenta cells creating geometric tessellation. Mathematical tiling. Honeycomb structure. Hexagonal grid pattern. Geometric perfection. 1920x1080 widescreen." "showcase_J_hex"

# J7: Voronoi Diagram
generate "Voronoi diagram cellular divisions cyan purple territories. Mathematical partitioning. 1920x1080 widescreen. Cellular divisions creating Voronoi diagram. Cyan and purple territories. Mathematical partitioning algorithm. Organic cellular patterns. Voronoi tessellation. 1920x1080 widescreen." "showcase_J_voronoi"

# J8: Low Poly
generate "Triangulation low-poly geometric facets gradient. Polygon reduction aesthetic. 1920x1080 widescreen. Triangular facets creating low-poly geometric surface. Gradient across polygon facets. Polygon reduction aesthetic. Low-poly rendering style. Geometric simplification. 1920x1080 widescreen." "showcase_J_lowpoly"

# J9: Scanline Overlay
generate "Scanline overlay interlaced alternating transparency. CRT simulation. 1920x1080 widescreen. Interlaced scan line pattern. Alternating transparent lines. CRT simulation effect. Retro monitor aesthetic. Scan line transparency. Video simulation. 1920x1080 widescreen." "showcase_J_scanline"

# J10: Chromatic Prism
generate "Chromatic aberration rainbow edge separation prism split. Optical distortion beauty. 1920x1080 widescreen. Rainbow edge separation like prism. Chromatic aberration creating rainbow edges. Optical distortion aesthetic. Prism light splitting. Rainbow color fringing. Beautiful optical glitch. 1920x1080 widescreen." "showcase_J_prism"

echo "Showcase J complete: 10 geometric pattern wallpapers"