Class: GraphicsContext

GraphicsContext

A class that holds the render data for a GraphicsContext.

new GraphicsContext ()

Methods

Creates a new GraphicsContext object with the same values as this one.

Returns:
Type Description
GraphicsContext A clone of this GraphicsContext

containsPoint (point) boolean

Check to see if a point is contained within this geometry.

Name Type Description
point PointData

Point to check if it's contained.

Returns:
Type Description
boolean true if the point is contained within geometry.

destroy (options) void

Destroys the GraphicsData object.

Name Type Attributes Default Description
options TypeOrBool<TextureDestroyOptions> false

Options parameter. A boolean will act as if all options have been set to that value

options.texture boolean <optional>
false

Should it destroy the current texture of the fill/stroke style?

options.textureSource boolean <optional>
false

Should it destroy the texture source of the fill/stroke style?

fill (style, alpha) this Deprecated`` : 8.0.0

Name Type Attributes Description
style FillStyleInputs <optional>
alpha number <optional>
Returns:
Type Description
this