Press space to generate the domain of the function and press E to generate the range of the function. The sliders control the input of the function. The real input is [Xmin, Xmax] and the imaginary input is [-Ymax, Ymax]. Delta controls the pattern being mapped and dir controls whether the lines are vertical or horizontal.
This is the complex exponential function e^z which can also be expressed as e^xcosy+ie^xsiny. Complex functions map every point in a shape to every point in a different shape. In the case of the exponential function it maps a rectangle to a segment of a washer. Initially I wanted to this project with the NPR guy, but scratch seems to be having trouble with large lists now and wouldn't let me import the NPR guy. So instead you get to play around with boring old rainbows.