I am working on geometric algorithms. For my experiment demonstrations I would like to build some applet which would support dynamic functionalities. For example if I click some points in an area and press some button, the background algorithm would calculate the convex hull and draw it.

I have learnt Java Applet is a nice way. Is there any other elegant way to demonstrate this type of things.

Any suggestion shall be greatly appreciated.