💾ctx.polyline()
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
browser ⟩ canvas ⟩ path ⟩ ctx.polyline()
💾 replit:canvas curves
⬆️ 需要: Vector
// 🔸 ctx.polyline()
CanvasRenderingContext2D.prototype.polyline = function(pts, {
color = 'gray',
lineWidth = 1,
}={}) {
this.save