There are very straightforward algorithms for drawing simple shapes like circles, ovals, rectangles, squares, etc. Even more complex shapes like stars. Recently I wanted to draw an egg shape with code and was surprised that there is no standard way to do so.
I did find this page though, which has a host of formulas for drawing ovals, ellipses and egg-shaped … um, shapes.
http://www.mathematische-basteleien.de/eggcurves.htm
Here’s what I came up with.
Controls: MiniComps
Graphics: BLJS
Comments? Best way to shout at me is on Mastodon