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:
AcEdUiTheme
COLORTHEME
MODELBKCOLOR
PAPERBKCOLOR
Shared colour constants and luminance helpers are defined in @mlightcad/graphic-interface (AcGiContext.ts) and re-exported here for editor callers.
@mlightcad/graphic-interface
AcGiContext.ts
Whether a packed RGB colour is perceptually light (paper-like).
Canvas and drawing-display colours that are independent of AcEdUiTheme.
AcEdUiThemeand theCOLORTHEMEsysvar drive chrome tokens (CSS variables). This module holds helpers for the CAD viewport:MODELBKCOLOR/PAPERBKCOLORcontrol the canvas clear colour and ACI-7 foreground inversion.COLORTHEMEonly affects viewer chrome, not canvas or ACI-7 rendering.Shared colour constants and luminance helpers are defined in
@mlightcad/graphic-interface(AcGiContext.ts) and re-exported here for editor callers.