Versions in this module Expand all Collapse all v0 v0.3.1 Jul 24, 2026 v0.3.0 Jul 23, 2026 v0.2.2 Jul 21, 2026 v0.2.1 Jul 21, 2026 v0.2.0 Jul 21, 2026 Changes in this version + const BackgroundCustom + const BackgroundPreset + const BackgroundTransparent + const ChromeMinimal + const ChromeOS + const ChromeOSWireframe + const CompactSuperSample + const FormatPNG + const FormatSVG + const MaxBackgroundBytes + const MaxTitleLen + const MinExportFontPx + const OSStyleMacOS + const OSStyleWindows + const OSStyleWireframe + var BackgroundPresets = map[string]BackgroundSpec + var ThemeChromeAccents = map[string]ThemeChromeAccent + func ChromeInnerGap() int + func ChromePadding() int + func CustomBackgroundScenePad() int + func EffectiveFontPx(opts Options) int + func Filename(title, ext string) string + func GridLabelFontPx() float64 + func InternalRenderScale(exportScale int) int + func MacOSTerminalInset() int + func MacOSTitleBarHeight() int + func MacOSTrafficLightGap() int + func MacOSTrafficLightInset() int + func MacOSTrafficLightSize() int + func MacOSWindowBg(opts Options) color.RGBA + func MacOSWindowRadius() int + func Render(snap term.ScreenSnapshot, opts Options, customBackground io.Reader) ([]byte, string, error) + func RenderPNG(snap term.ScreenSnapshot, opts Options) ([]byte, error) + func RenderPNGWithBackground(snap term.ScreenSnapshot, opts Options, custom io.Reader) ([]byte, error) + func RenderSVG(snap term.ScreenSnapshot, opts Options) ([]byte, error) + func RenderSVGWithBackground(snap term.ScreenSnapshot, opts Options, customBackground []byte) ([]byte, error) + func TitleBarHeight(chrome string, osStyle string) int + func ViewerFramePad() int + func ViewerFrameRadius() int + func WindowsAppName() string + func WindowsCaptionButtonWidth() int + func WindowsNewTabButtonWidth() int + func WindowsTabActiveTopAccent(opts Options) color.RGBA + func WindowsTabCloseButtonWidth() int + func WindowsTabIconGap() int + func WindowsTabIconSize() int + func WindowsTabMenuButtonWidth() int + func WindowsTabPaddingX() int + func WindowsTabRowBg(opts Options) color.RGBA + func WindowsTabRowMarginTop() int + func WindowsTabRowMarginX() int + func WindowsTabTopRadius() int + func WindowsTabWidth() int + func WindowsTerminalInset() int + func WindowsTitleBarHeight() int + func WindowsWindowBg(opts Options) color.RGBA + func WindowsWindowRadius() int + type BackgroundSpec struct + Angle int + Color string + End string + Kind string + Start string + type Layout struct + Border int + CellH int + CellW int + ChromeH int + ChromeOffsetX int + ChromeOffsetY int + ChromePad int + ChromeW int + Cols int + Downscale int + ExportScale int + FrameH int + FramePad int + FrameRadius int + FrameW int + InnerGap int + OSStyle string + OuterH int + OuterW int + RenderOuterH int + RenderOuterW int + RenderScale int + Rows int + ScenePad int + TermH int + TermOffsetX int + TermOffsetY int + TermW int + TitleBar int + WindowRadius int + Wireframe bool + func ComputeLayout(snap term.ScreenSnapshot, opts Options) Layout + func ScaleLayoutToOuter(layout Layout) Layout + type Options struct + BackgroundMode string + BackgroundPreset string + ChromeOSStyle string + ChromePreset string + FontFamily string + FontSizePx int + Format string + Scale int + ShowGridSize bool + TermHPx int + TermWPx int + Theme string + Title string + func DefaultOptions() Options + func (o *Options) NormalizeChrome() + func (o *Options) Validate() error + func (o Options) IsOSChrome() bool + func (o Options) LayoutScale() int + func (o Options) ResolvedOSStyle() string + type ThemeChromeAccent struct + Border string + FrameBg string + LabelBg string + LabelBorder string + LabelText string + func ThemeChromeAccentFor(opts Options) ThemeChromeAccent