Interface IMarkupColorable

2D markup colorable object interface.

interface IMarkupColorable {
    getColor(): string;
    setColor(hex: string): void;
}

Hierarchy (View Summary)

Methods

  • Returns the foreground color of an object's line or text as a string in hexadecimal color syntax #RGB using its primary color components (red, green, blue) written as hexadecimal numbers.

    Returns string

  • Sets the foreground color of an object's line or text.

    Parameters

    • hex: string

      Color in hexadecimal color syntax #RGB.

    Returns void

MMNEPVFCICPMFPCPTTAAATR