an attempt to make a download button
This commit is contained in:
parent
bd2ad29981
commit
1922e21664
3 changed files with 35 additions and 3 deletions
|
@ -19,6 +19,9 @@ class Canvas extends UI {
|
|||
this._ctx.fillStyle = "";
|
||||
this._ctx.filter = "blur(" + this._blurStrength + "px)";
|
||||
}
|
||||
getData() {
|
||||
this.element.toDataURL();
|
||||
}
|
||||
draw(shape) {
|
||||
this._ctx.fillStyle = shape.color.rgba();
|
||||
shape.draw(this._ctx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue