Making a new kind of morph

  • Add two new kinds of morph to implement a pie chart.

  • Shows how to alter drawing, input, layout.

  • Example of extending the morph hierarchy.

Developing a new kind of morph

In this section we will develop a new kind of morph, extending the morph hierarchy. This gives us an opportunity to discuss how the various responsibilities of a morph are implemented and can be modified.

The example we will develop is that of a pie chart, made up of pie wedges.

[ Previous ] [ Index ] [ Next ]