Methods
clone () GraphicsContext
Creates a new GraphicsContext object with the same values as this one.
Returns:
Type | Description |
---|---|
GraphicsContext | A clone of this GraphicsContext |
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. |
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? |
Name | Type | Attributes | Description |
---|---|---|---|
style |
FillStyleInputs |
<optional> |
|
alpha |
number |
<optional> |
Returns:
Type | Description |
---|---|
this |