function clearIt()   {
    clearButton.mouseIsOver = false;
    clearButton.onmouseover = function()   {
        this.mouseIsOver = true;
    };
    clearButton.onmouseout = function()   {
        this.mouseIsOver = false;
    }
    clearButton.onclick = function()   {
        if (this.mouseIsOver)   {
            clear();
            background(bgColor);
            redraw();
        }
    }
}
//    clear everything before the current frame, background must be temporarily altered to full opacity or things get lost
clear everything before the current frame, background must be temporarily altered to full opacity or things get lost
clear everything before the current frame background must be temporarily altered to full opacity or things get lost
function clearIt()   {
    clearButton.mouseIsOver = false;
    clearButton.onmouseover = function()   {
        this.mouseIsOver = true;
    };
    clearButton.onmouseout = function()   {
        this.mouseIsOver = false;
    }
    clearButton.onclick = function()   {
        if (this.mouseIsOver)   {
            clear();
            background(bgColor);
            redraw();
        }
    }
}
function clearIt ( ) { clearButton . mouseIsOver = false ; clearButton . onmouseover = function ( ) { this . mouseIsOver = true ; } ; clearButton . onmouseout = function ( ) { this . mouseIsOver = false ; } clearButton . onclick = function ( ) { if ( this . mouseIsOver ) { clear ( ) ; background ( bgColor ) ; redraw ( ) ; } } }
clear everything before the current frame, background must be temporarily altered to full opacity or things get lost
clear everything before the current frame background must be temporarily altered to full opacity or things get lost