Represents an AutoCAD-like entity color object.

This class mimics ObjectARX AcCmEntityColor. It stores:

  • A color method (AcCmColorMethod)
  • A single numeric value that represents:
    • RGB (packed R/G/B)
    • ACI index
    • Layer index

It uses lazy decoding/encoding to expose convenient getters/setters.

Constructors

Properties

_colorMethod: AcCmColorMethod

The method used to determine the final color. Defaults to AcCmColorMethod.ByColor (RGB).

Accessors

Methods

  • Sets all RGB components.

    Parameters

    • r: number

      Red (0–255)

    • g: number

      Green (0–255)

    • b: number

      Blue (0–255)

    Returns void