cc.fillStyle = "#000"
cc.beginPath()
cc.moveTo(x,y)
cc.lineTo(x,y)
cc.lineTo(x,y) // minimum of two
cc.closePath()
cc.fill()
cc.beginPath()
cc.moveTo(x,y)
cc.lineTo(x,y)
cc.lineTo(x,y) // minimum of two
cc.closePath()
cc.fill()
cc.fillStyle = "#000"
cc.beginPath()
cc.moveTo(x,y)
cc.lineTo(x,y)
cc.lineTo(x,y) // minimum of two
cc.closePath()
cc.fill()
cc.beginPath()
cc.moveTo(x,y)
cc.lineTo(x,y)
cc.lineTo(x,y) // minimum of two
cc.closePath()
cc.fill()
cc.fillStyle = "#000"
cc.beginPath()
cc.moveTo(x,y)
cc.lineTo(x,y)
cc.lineTo(x,y) // minimum of two
cc.closePath()
cc.fill()
cc.beginPath()
cc.moveTo(x,y)
cc.lineTo(x,y)
cc.lineTo(x,y) // minimum of two
cc.closePath()
cc.fill()
cc.fillStyle = "#000"
cc.beginPath()
cc.moveTo(x,y)
cc.lineTo(x,y)
cc.lineTo(x,y) // minimum of two
cc.closePath()
cc.fill()
cc.beginPath()
cc.moveTo(x,y)
cc.lineTo(x,y)
cc.lineTo(x,y) // minimum of two
cc.closePath()
cc.fill()
cc.fillStyle = "#000"
cc.beginPath()
cc.moveTo(x,y)
cc.lineTo(x,y)
cc.lineTo(x,y) // minimum of two
cc.closePath()
cc.fill()
cc.beginPath()
cc.moveTo(x,y)
cc.lineTo(x,y)
cc.lineTo(x,y) // minimum of two
cc.closePath()
cc.fill()
Example:
cc.fillStyle = "pink"
cc.beginPath()
cc.moveTo(50,100)
cc.lineTo(100,0)
cc.lineTo(150,100)
cc.closePath()
cc.fill()
cc.beginPath()
cc.moveTo(50,100)
cc.lineTo(100,0)
cc.lineTo(150,100)
cc.closePath()
cc.fill()