1);
                y = t(i, 2);
                obj.addClickToStack(x, y);
                obj.paint(x, y);
            <span class="keyword">end</span>
        <span class="keyword">end</span>
</pre><h2>getStackSize<a name="7"></a></h2><p>Query the number of points in the stack, or the number of total point clicks.</p><p><b>Returns</b></p><p><tt>size</tt>: number of clicks in the stack</p><pre class="codeinput">        <span class="keyword">function</span> size = getStackSize(obj)
            size = lengt