= obj.stack(end, 1);
            y = obj.stack(end, 2);

            obj.unpaint(x, y);
            obj.removeClickFromStack(x, y);
        <span class="keyword">end</span>
</pre><h2>clear<a name="16"></a></h2><p>Clear all CData, AlphaData and the stack.</p><pre class="codeinput">        <span class="keyword">function</span> clear(obj)
            <span class="keyword">for</span> i = 1 : length(obj.stack)
                obj.undoLastPoint();
            <span class="keyword">end</span>

            <span cl