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