embiem / react-canvas-draw

React Component for drawing in canvas
https://embiem.github.io/react-canvas-draw/
MIT License
892 stars 315 forks source link

Draw brush preview color #101

Closed TTTTTTYX closed 3 years ago

TTTTTTYX commented 3 years ago

// Draw brush preview ctx.beginPath(); ctx.fillStyle = _this.props.brushColor; ctx.arc(brush.x, brush.y, _this.props.brushRadius, 0, Math.PI * 2, true); ctx.fill();

Could you increase the input parameter to set the color of this point