Implements

Constructors

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

    Parameters

    • Optionaloptions: Options

      Create a RenderOptions instance with the specified options.

    Returns RenderOptions

    const renderOptions = await RenderOptions.create();
    

Properties

options: Options

Methods

  • Converts a numeric color value to hex color string.

    Parameters

    • color: number

      The numeric color value to convert.

    Returns Promise<string>

    A promise that resolves to the hex color string in format "#RRGGBB".

  • Parameters

    • hexColor: string

    Returns Promise<number>

  • Gets the background color.

    Returns Promise<string>

    A promise that resolves to the background color. Hex color string in the format "#RRGGBB".

  • Gets the color mode.

    Returns Promise<number>

    A promise that resolves to the color mode.

  • Gets the foreground color.

    Returns Promise<string>

    A promise that resolves to the foreground color. Hex color string in the format "#RRGGBB".

  • Gets the render flag.

    Returns Promise<string>

    A promise that resolves to the render flag.

  • Sets the background color.

    Parameters

    • color: string

      The background color to set. Hex color string in the format "#RRGGBB".

    Returns Promise<void>

    A promise that resolves when the background color is set.

  • Sets the foreground color.

    Parameters

    • color: string

      The foreground color to set. Hex color string in the format "#RRGGBB".

    Returns Promise<void>

    A promise that resolves when the foreground color is set.

  • Creates a RenderOptions instance.

    Parameters

    • Optionaloptions: Options

      The configuration options required for creation, containing necessary initialization information.

    Returns Promise<RenderOptionsType>

    A promise that resolves to a RenderOptions instance.