Hi, I don&#39;t know if this will help you but I started working on a drawing app for Etoys and I&#39;m using a Pen for the paintbrush. This way I can change its sourceForm and use different shapes and stuff. And when I need to erase I simply change its combination rule to #erase1bitShape, otherwise I use the #paint combination rule and I change the pen&#39;s color to whatever color I want.<div>

Maybe this is not the right way of doing it but it works :)</div><div><br></div><div>Richo</div><div><br><div class="gmail_quote">On Wed, Aug 18, 2010 at 4:15 PM, J.F. Rick <span dir="ltr">&lt;<a href="mailto:self@je77.com">self@je77.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<div><br></div><div>I&#39;m building a drawing application for the iPad and I&#39;m having some problems building erase into it. <span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">I&#39;m using fillOval:fillStyle: and drawPolygon:fillStyle: for drawing normally and I&#39;d like to use the same methods for erasing. Unfortunately, when I put in (Color transparent) as the fillStyle, it doesn&#39;t do anything. I believe this is because it is acting as a paint over combination rule. So, original + transparent = original. What I want is that the transparent color takes the place of the original color. Any advice on how to do this?</span></div>


<div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br></span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Thanks,</span></div>
<div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><br></span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Jeff</span></div>
<div><br>-- <br>Jochen &quot;Jeff&quot; Rick, Ph.D.<br><a href="http://www.je77.com/" target="_blank">http://www.je77.com/</a><br>+44(0)1908 332 451 (work)<br>Skype ID: jochenrick<br>
</div>
<br><br>
<br></blockquote></div><br></div>