G-code Preview — API Reference
    Preparing search index...

    A partial, declarative theme. Every field is optional; unspecified fields fall back to DEFAULT_THEME (replace semantics — the object fully describes the desired state, so setTheme resets omitted fields to their defaults).

    interface Theme {
        background?: ThemeBackground;
        bedColor?: ThemeColor;
        bedOutline?: ThemeBedOutline;
        bedSurface?: BedSurface;
        contactShadow?: ThemeContactShadow;
        directionalIntensity?: number;
        gridColor?: ThemeColor;
        gridMajor?: ThemeGridMajor;
        gridOpacity?: number;
        hemisphereIntensity?: number;
        materialPreset?: MaterialPreset;
    }
    Index
    background?: ThemeBackground

    Scene background. Omit to leave three's default (today's unset/transparent look); null is the same as omitting. A color paints a solid backdrop.

    bedColor?: ThemeColor

    Build-plate outline (wireframe box) color.

    bedOutline?: ThemeBedOutline

    Bed boundary loop (DD-032); omit for today's look (no loop on rect beds).

    bedSurface?: BedSurface

    Build-plate surface (#185); omit for the bare grid (today's look).

    contactShadow?: ThemeContactShadow

    Soft contact shadow under the content (DD-032); omit for none.

    directionalIntensity?: number

    Key directional light intensity.

    gridColor?: ThemeColor

    Build-plate grid line color.

    gridMajor?: ThemeGridMajor

    Major grid tier (DD-032); omit for a single-tier grid.

    gridOpacity?: number

    Minor grid line opacity in [0,1] (default 0.35).

    hemisphereIntensity?: number

    Ambient hemisphere light intensity.

    materialPreset?: MaterialPreset

    Extrusion (tube) material preset. Lines-quality geometry is unlit and unaffected.