BIT-101 [2017-2023]

How to Draw an Egg


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.

Source

Controls: MiniComps

Graphics: BLJS

Support this work

« Previous Post
Next Post »

Comments? Best way to shout at me is on Mastodon

Or share this post directly on Mastodon