DrawBot
Free application for macOS that invites you to write Python scripts
...It provides a script-based drawing environment for designers, typographers, artists, and educators interested in generative design. Users can produce compositions using rectangles, ovals, Bézier paths, polygons, text, colors, and transparency. Its typography tools support programmatic text placement and advanced font manipulation. Drawing commands can generate multi-page documents, procedural patterns, and animations from reusable scripts. The application exports graphics in formats including PDF, SVG, PNG, JPEG, and TIFF. Animated output can be saved as GIF or MP4 files. DrawBot can also be installed as a Python module, allowing its drawing functions to be integrated into automated design workflows.