Newbie question: pie chart

Ned Konz ned at bike-nomad.com
Fri Nov 16 23:28:38 UTC 2001


On Friday 16 November 2001 03:15 pm, Hsin-Hao Yu wrote:
> Hello! Can anyone show me the easiest way to draw a filled pizza
> slice in Morphics? Let's say I need to draw a pie chart. I need
> to fill slices of the pie specified by an arc angle. I did a little
> search but couldn't find what I need. Thanx a lot.

There's fillOval: but nothing that allows directly for slices.
You could mask with a triangle, though (there's also a polygon drawing 
routine).

-- 
Ned Konz
currently: Stanwood, WA
email:     ned at bike-nomad.com
homepage:  http://bike-nomad.com




More information about the Squeak-dev mailing list