although I have no clue, why it would draw an 'inverted' circle mask into the alphachannel...?
which boils down to: is there really something like 'alphainvert'
(and why didn't I find it myself... ;-)
We could go back to the original problem, and then the question would be how with imaging lingo would you create a solid circle where all the pixels of the circle are opaque and all the pixels around the circle are transparent?
maybe it is a matter of my english skills, but that's exactly what I didn't understand in your first post, because I don't believe, that you just want to draw a 'matte' solid circle to the stage, like:
on getMatteCircle radius, color radius = radius * 2 i = image(radius, radius, 32, 1) i.fill(i.rect, color) mask = image(radius, radius, 8, 0, #grayscale) mask.fill(mask.rect, [#shapetype:#oval, #color:rgb(0,0,0)]) i.setAlpha(mask) return i end
or with anti-aliasing option:
on getMatteCircle theRadius, theColor, alias alias = integer(alias + 1) theRadius = theRadius * 2 i = image(theRadius, theRadius, 32, 1) i.fill(i.rect, theColor) theMask = image(theRadius, theRadius, 8, 0, #grayscale) if alias > 1 then w = theRadius * alias m = image(w, w, 8, 0, #grayscale) m.fill(m.rect, [#shapetype:#oval, #color:rgb(0,0,0)]) theMask.copyPixels(m, theMask.rect, m.rect, [#dither:1969]) else theMask.fill(theMask.rect, [#shapetype:#oval, #color:rgb(0,0,0)]) end if i.setAlpha(theMask) return i end
I didn't want to offend you, because I am sure, that you can figure out much more complicated things, than this one.
that was simply the reason, I didn't understand your question in the first place.
--
||| ażex -- [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]