Interface: GraphicsOptions

GraphicsOptions

Constructor options used for Graphics instances.

const graphics = new Graphics({
   fillStyle: { color: 0xff0000, alpha: 0.5 },
   strokeStyle: { color: 0x00ff00, width: 2 },
});
Properties:
Name Type Description
context GraphicsContext

The GraphicsContext to use, useful for reuse and optimisation

roundPixels boolean

Whether or not to round the x/y position.

See:

Extends

  • PixiMixins.GraphicsOptions
  • ViewContainerOptions

Members

context GraphicsContext

The GraphicsContext to use, useful for reuse and optimisation

roundPixels boolean

Whether or not to round the x/y position.