This is just math abstraction, this not draw. Look for Extended Curves.

Libcanvas examples