def populate(self, curve, rot): def f(theta): return rect(1.15*sin(5 * theta), theta)*rot # complex nmax = 150 for n in range(nmax + 1): theta = 2 * pi * n / nmax curve.point(f(theta))