an attempt to make a download button

This commit is contained in:
Blue 2018-11-20 18:10:46 +03:00
parent bd2ad29981
commit 1922e21664
3 changed files with 35 additions and 3 deletions

View file

@ -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);