[squeak-dev] Erase when drawing

J.F. Rick self at je77.com
Wed Aug 18 19:15:02 UTC 2010


Hi,

I'm building a drawing application for the iPad and I'm having some problems
building erase into it. I'm using fillOval:fillStyle:
and drawPolygon:fillStyle: for drawing normally and I'd like to use the same
methods for erasing. Unfortunately, when I put in (Color transparent) as the
fillStyle, it doesn'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?

Thanks,

Jeff

-- 
Jochen "Jeff" Rick, Ph.D.
http://www.je77.com/
+44(0)1908 332 451 (work)
Skype ID: jochenrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100818/05b7ffe0/attachment.htm


More information about the Squeak-dev mailing list