feat: imgage feature
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user