A command to create a colormap and register it in the engine.

This interface does not validate that values represent valid colors.

Hierarchy

  • CreateColormapMessage

Properties

Properties

colors: (string | [number, number, number, number?])[]

The list of colors defining the colormap.

Colors can be given as strings, or [A, R, G, B] or [R, G, B] lists with integer values between 0 and 255.

event: "create_colormap"

The tag identifying this message type

name: string

The name with which the created colormap will be registered in the engine.

If a colormap with this name already exists, this new registration will override the existing one.

Generated using TypeDoc