Graphics
Creates a Graphics
Graphics can be used for any kind of drawing. Use the draw
prop to interact with the PIXI.Graphics API.
This will set up a watchEffect
internally that will automatically call the event handler again if any dependencies on the render method have changed.
API
Graphics Attributes
Name | Type | Default | Description |
---|---|---|---|
blend-mode |
| BLEND_MODES.NORMAL | The blend mode to be applied to the sprite. |
plugin-name | string | undefined | The name of the plugin that is responsible for rendering this element. |
tint |
| undefined | The tint applied to the graphic shape. |
is-mask | boolean | false | Sets if this Graphics object is a mask. |
more props in Container Props and PIXI.Graphics
Graphics Events
Name | Type | Description |
---|---|---|
render | function | Call your drawing functions on the PIXI.Graphics instance here |
more events in Container Events
Graphics Slots
Name | Description |
---|---|
default | The default slot is used to render the children of the Graphics element. |