MLightCAD
    Preparing search index...
    • Resolves a packed RGB canvas background from an AcCmColor sysvar value, with space-specific defaults as fallback.

      When the sysvar holds a concrete RGB colour (color.RGB is defined), that value is returned directly. Otherwise the AutoCAD defaults are used: MODEL_SPACE_BACKGROUND (0x000000) for model space or PAPER_SPACE_BACKGROUND (0xffffff) for paper space.

      Parameters

      • color: AcCmColor | undefined

        Layout background colour from MODELBKCOLOR or PAPERBKCOLOR, or undefined when the sysvar is unset.

      • isModelSpace: boolean

        true when resolving for model space; false for paper space (selects the default fallback).

      Returns number

      Packed 24-bit RGB suitable for the renderer clear colour.

      readLayoutBackgroundColor — reads the sysvar then calls this