Pretty vector graphics - Playing with SVG in Python
summary
Generates SVG by building text rather than using high-level libraries, with string manipulation to produce lines, rectangles, circles, arcs and complex paths; uses Pillow for pixel reading to drive quadrant-average color subdivision; experiments include a Markov color model, circle packing, a 12-point approximation using 12 cubic curves approximating a circle, a tree drawn with HSL fading, logistic-map mountains, and a double pendulum that initially fails then succeeds; outputs can be CSS-animated, laser-engraved, and sometimes explode into huge file sizes.
AI-written summary · about
chapters (9)
- 0:00Start
- 3:25Drawing a line
- 5:28Rectangles
- 6:28Circles
- 8:38Paths
- 10:45Wiggling Stuff
- 12:25Symmetry
- 15:16Algorithm play
- 17:57Playing with style








