Making an inverted ellipse morph?

Dean Pu Mao deanmao at cc.gatech.edu
Wed Nov 29 20:03:26 UTC 2000


I'm curious if it's easily possible to make an inverted ellipse.  (It's
like an ellipse only that the bounding rectangle is not transparent and
the ellipse itself is transparent (and all clicks go through it)).

I could subclass EllipseMorph and make it so that the
containsPoint: returns an opposite value so that clicks go through, but
that still doesn't solve the drawOn: problem.  How can I make drawOn: to
draw everything around the ellipse keeping the insides transparent?

Dean





More information about the Squeak-dev mailing list