I am converting my sketch from the Week 4 assignment into a function-based one.
I do ran into an issue of unmatching between horizontal and vertical circles:
I think it requires a complex formula to resolve.