How to Draw an Egg

experiments, minicomps

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.

Here’s what I came up with.


Controls: MiniComps

Graphics: BLJS

Support this work


  • 💬 Coding Curves 14: Miscellaneous Curves

Leave a Reply