20 lines
316 B
JavaScript
20 lines
316 B
JavaScript
|
class PenBrush {
|
||
|
|
||
|
constructor() {
|
||
|
this.opacity = 1;
|
||
|
this.name = "PenBrush";
|
||
|
}
|
||
|
|
||
|
draw(ctx, strokeStyle, x, y) {
|
||
|
ctx.lineJoin = ctx.lineCap = 'round';
|
||
|
ctx.strokeStyle = strokeStyle;
|
||
|
ctx.lineTo(x, y);
|
||
|
ctx.stroke();
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
//TODO DiscBrush
|
||
|
//TODO StarBrush
|
||
|
|