MLightCAD
    Preparing search index...

    Canvas and drawing-display colours that are independent of AcEdUiTheme.

    AcEdUiTheme and the COLORTHEME sysvar drive chrome tokens (CSS variables). This module holds helpers for the CAD viewport:

    • Layout backgroundMODELBKCOLOR / PAPERBKCOLOR control the canvas clear colour and ACI-7 foreground inversion.
    • UI colour themeCOLORTHEME only affects viewer chrome, not canvas or ACI-7 rendering.

    Shared colour constants and luminance helpers live in @mlightcad/three-renderer (AcTrDisplayColors) and are re-exported here for editor callers.

    • Whether a packed RGB colour is perceptually light (paper-like).

      Used to pick contrasting ACI-7 rendering on the current canvas background from MODELBKCOLOR / PAPERBKCOLOR.

      Parameters

      • color: number

      Returns boolean