This repository has been archived on 2021-10-31. You can view files and clone it, but cannot push or open issues or pull requests.
|
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
|
|
|