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