feat: imgage feature

This commit is contained in:
2026-04-01 12:31:23 +02:00
parent 175de893aa
commit 528d2d8519
11 changed files with 431 additions and 7 deletions

View File

@@ -361,6 +361,18 @@ class StateDecl(IRNode):
# Components (Phase 8)
# ---------------------------------------------------------------------------
@dataclass
class ImageNode(IRNode):
"""Image converted to character art."""
path: str = ""
mode: str = "braille" # braille, block, ascii, halfblock
img_width: int = 30
dither: str = "floyd" # floyd, threshold, none
invert: bool = False
use_color: bool = False
caption: str = ""
@dataclass
class BigTitle(IRNode):
"""Large multi-line ASCII art text."""