Class ColorMaterial

ABitmapBaseMaterial is a class that represents a material with a bitmap texture.

Hierarchy (View Summary)

Constructors

Properties

color: ColorRGB
dirtyPipeline: boolean = false
gpuRenderInfo: FragmentGPURenderInfo
opacity: number
tint: ColorRGBA
transparent: boolean = false
use2PathRender: boolean
useTint: boolean

Accessors

  • get gpuDevice(): GPUDevice

    Retrieves the GPU device associated with the current instance.

    Returns GPUDevice

    The GPU device.

  • get tintBlendMode(): string

    Returns string

  • set tintBlendMode(
        value:
            | "SUBTRACT"
            | "NORMAL"
            | "MULTIPLY"
            | "LIGHTEN"
            | "SCREEN"
            | "LINEAR_DODGE"
            | "DARKEN"
            | "OVERLAY"
            | "COLOR_DODGE"
            | "COLOR_BURN"
            | "HARD_LIGHT"
            | "SOFT_LIGHT"
            | "DIFFERENCE"
            | "EXCLUSION"
            | "DIVIDE"
            | "VIVID_LIGHT"
            | "LINEAR_BURN"
            | "PIN_LIGHT"
            | "SATURATION"
            | "HUE"
            | "LUMINOSITY"
            | "COLOR"
            | "NEGATION"
            | Material.TINT_BLEND_MODE,
    ): void

    Parameters

    • value:
          | "SUBTRACT"
          | "NORMAL"
          | "MULTIPLY"
          | "LIGHTEN"
          | "SCREEN"
          | "LINEAR_DODGE"
          | "DARKEN"
          | "OVERLAY"
          | "COLOR_DODGE"
          | "COLOR_BURN"
          | "HARD_LIGHT"
          | "SOFT_LIGHT"
          | "DIFFERENCE"
          | "EXCLUSION"
          | "DIVIDE"
          | "VIVID_LIGHT"
          | "LINEAR_BURN"
          | "PIN_LIGHT"
          | "SATURATION"
          | "HUE"
          | "LUMINOSITY"
          | "COLOR"
          | "NEGATION"
          | Material.TINT_BLEND_MODE

    Returns void

Methods

  • Adds a listener function to the dirty pipeline listeners array. This function will be called when the pipeline becomes dirty.

    Parameters

    • listener: () => void

      The listener function to be added.

    Returns void