How to route sine/cosine patterns for an angle sensor?

I am not sure if @HiGreg is still working on KiCommand, but he was doing pretty cool stuff for adding curves and text in a programmatical way: