Hi Angus,
thanks for your time and I have great respect for expertise which is way above my head.
But your earlier post promised a stand alone solution ("It requires no specific graphics library to use, just a few extra functions (also included below)") but this doesn't seem to be true. Well, it was worth a try.