const draw = (p0, p1, p2, r) => {
ctx.beginPath()
ctx.rotate(r)
ctx.moveTo(p0.x, p0.y)
ctx.lineTo(p1.x, p1.y)
ctx.lineTo(p2.x, p2.y)
ctx.fillStyle = color
ctx.fill()
}
export default {
init,
draw,
update
}
> sierpinski.init() > sierpinski.draw(progress)
TAAS - On-Demand Development Services. Affordable.
We build and deploy development teams to meet your project needs.