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?: null | ThemeColor;
        bedColor?: ThemeColor;
        directionalIntensity?: number;
        gridColor?: ThemeColor;
        hemisphereIntensity?: number;
        materialPreset?: MaterialPreset;
    }
    Index

    Properties

    background?: null | ThemeColor

    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.

    directionalIntensity?: number

    Key directional light intensity.

    gridColor?: ThemeColor

    Build-plate grid line color.

    hemisphereIntensity?: number

    Ambient hemisphere light intensity.

    materialPreset?: MaterialPreset

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