After reverse-engineering how Painter creates its scripts, I ported the code from Jared Tarbell's ActionScript Lorenz Attractor to MATLAB in order to automatically generate the Painter script. The original intent was to connect the dots between MATLAB and Photoshop, but in the end I preferred how organic Painter emulated natural media.