Update PenSkin.js

This commit is contained in:
peabrainiac
2019-02-27 08:48:45 +01:00
committed by GitHub
parent c9f86ef53b
commit 44d2fdeba8

View File

@@ -181,8 +181,9 @@ class PenSkin extends Skin {
clear () {
const gl = this._renderer.gl;
twgl.bindFramebufferInfo(gl, this._framebuffer);
gl.clearColor(1, 1, 1, 0);
/* Reset framebuffer to transparent black */
gl.clearColor(0, 0, 0, 0);
gl.clear(gl.COLOR_BUFFER_BIT);
const ctx = this._canvas.getContext('2d');