Implements

Constructors

Properties

Methods

Constructors

  • Create a Color instance. Instead of creating an instance in new mode, use create to create an instance.

    Parameters

    • Optionaloptions: Options

      Create a Color instance with the specified options.

    Returns Color

    const color = await Color.create();
    

Properties

options: Options

Methods

  • Destroy the current object.

    Returns Promise<void>

  • Create an Color instance.

    Parameters

    • Optionaloptions: Options

      create an Color instance with the specified options.

    Returns Promise<Color>

    Returns a Color instance.