const { LazyCanvas, ArcLayer } = require('@hitomihiumi/lazy-canvas');let arc = new ArcLayer().setX(400).setY(300).setRadius(100).setColor('#fff').setStroke(5).setFilled(false).setAngles(0, Math.PI / 2)const lazy = new LazyCanvas().addLayers(arc)//... Copy
const { LazyCanvas, ArcLayer } = require('@hitomihiumi/lazy-canvas');let arc = new ArcLayer().setX(400).setY(300).setRadius(100).setColor('#fff').setStroke(5).setFilled(false).setAngles(0, Math.PI / 2)const lazy = new LazyCanvas().addLayers(arc)//...
Optional
The alpha value of the layer
The angles of the arc
Whether the arc should be drawn clockwise or not
The color of the figure
Whether the figure should be filled or not
The global composite operation of the layer
The radius of the arc
The angle of rotation the layer
The degree of shadow blur
The shadow color for the layer
The X-axis offset of the shadow relative to the layer
The Y-axis offset of the shadow relative to the layer
The stroke of the figure
The x position of the layer
The y position of the layer
Example