Gauge or doughnut graph with IGOR

Does anyone have an idea how to plot either a gauge and/or a doughnut graph?

gauge.gif (13.25 KB) 5WQhS.png (21.12 KB)
You might take a look at how the meter CustomControl is drawn in the File->Example Experiments->Feature Demos 2->Custom Control Demo experiment. Open the experiment and then open the main procedure window (Windows->Procedure Windows->Procedure Window) and look at the drawscale() function.