Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: clip region for a donut shape



It depends if you are trying to show another element with the peephole, or
if you are trying to show something in the canvas underneath the hole.

If the canvas is floating over other html elements, just erase the center,
by creating a path and filling it with alpha.

Otherwise, try just rendering the bits you need, never rendering the center.

Thanks,
jl


> Hi,
> 
> I'm trying to draw a donut over a background using a canvas. How do clip
> this so that the center isn't drawn? I need the background to show through
> in the middle (like a peephole effect).
> -joanne
> 
> 
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Dashboard-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/dashboard-dev/email@hidden
> 
> This email sent to email@hidden

--------------------------------------------------
John Louch         Internet #: email@hidden
(805) 541 2965


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden

References: 
 >clip region for a donut shape (From: "Joanne Zhu" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.