vector/path.go
func (p *Path) Draw(target *ebiten.Image, op *DrawPathOptions) {
	if op == nil {
		return
	}

	// TODO: Implement filling
	if op.StrokeColor != nil {
		vs, is := p.strokeVertices(op.LineWidth, op.StrokeColor)
		op := &ebiten.DrawTrianglesOptions{}
		op.Address = ebiten.AddressRepeat
		target.DrawTriangles(vs, is, emptyImage, op)
	}
}
func (p *Path) Draw(target *ebiten.Image, op *DrawPathOptions) {
	if op == nil {
		return
	}

	// TODO: Implement filling
	if op.StrokeColor != nil {
		vs, is := p.strokeVertices(op.LineWidth, op.StrokeColor)
		op := &ebiten.DrawTrianglesOptions{}
		op.Address = ebiten.AddressRepeat
		target.DrawTriangles(vs, is, emptyImage, op)
	}
}
func ( p * Path ) Draw ( target * ebiten . Image , op * DrawPathOptions ) { if op == nil { return } // TODO: Implement filling if op . StrokeColor != nil { vs , is := p . strokeVertices ( op . LineWidth , op . StrokeColor ) op := & ebiten . DrawTrianglesOptions { } op . Address = ebiten . AddressRepeat target . DrawTriangles ( vs , is , emptyImage , op ) } }
// Draw draws the path by rendering its stroke or filling.
Draw draws the path by rendering its stroke or filling .