phaser - v4.0.0-rc.4
    Preparing search index...

    A RenderNode which fills a camera with a color.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    fillRectNode: FillRect

    The RenderNode that draws a filled rectangle.

    The manager that owns this RenderNode.

    name: string

    The name of the RenderNode.

    Methods

    • By default this is an empty method hook that you can override and use in your own custom render nodes.

      This method is called at the start of the run method. Don't forget to call it in your custom method.

      Parameters

      Returns void

    • By default this is an empty method hook that you can override and use in your own custom render nodes.

      This method is called at the end of the run method. Don't forget to call it in your custom method.

      Parameters

      Returns void

    • Fills the camera with a color. This uses FillRect, so it is batched with other quads.

      Parameters

      • drawingContext: DrawingContext

        The context currently in use.

      • color: number

        The color to fill the camera with.

      • OptionalisFramebufferCamera: boolean

        Is this camera rendering to a framebuffer? If so, the camera position will not be applied, on the assumption that the camera position will be used to position the framebuffer in the external context.

      Returns void

    • Set whether the node should report debug information. It wraps the run method with additional debug information.

      Parameters

      • debug: boolean

        Whether to report debug information.

      Returns void