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

    A RenderNode which renders a stroke path consisting of several line segments, potentially closed at the end.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    drawLineNode: DrawLine

    The RenderNode that generates a line segment.

    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

    • Render a stroke path consisting of several line segments.

      Parameters

      • drawingContext: DrawingContext

        The context currently in use.

      • submitterNode: BatchHandlerTriFlat

        The Submitter node to use.

      • path: WidePoint[]

        The points that define the line segments.

      • lineWidth: number

        The width of the stroke.

      • open: boolean

        Whether the stroke is open or closed.

      • currentMatrix: TransformMatrix

        The current transform matrix.

      • tintTL: number

        The top-left tint color.

      • tintTR: number

        The top-right tint color.

      • tintBL: number

        The bottom-left tint color.

      • tintBR: number

        The bottom-right tint color.

      • detail: number

        The level of detail to use when rendering the stroke. Points which are only this far apart in screen space are combined. It is ignored if the entire path is equal to or shorter than this distance.

      • lighting: boolean

        Whether to apply lighting effects to the stroke.

      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