Skip to content

davipatti/eggcellent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eggcellent

Make excellent egg shapes.

Install

It can be installed from command - line using pip:

pip install eggcellent

Usage

Use a default egg:

from eggcellent import egg
import matplotlib.pyplot as plt
plt.scatter([0, 1], [0, 1], marker=None, verts=egg, s=200)

example1.png

Make your own egg

from eggcellent import make_egg
egg = make_egg(a=2, b=3)

The egg equation is:

r = cos(2θ) + a * cos(θ) + b