I've had an idea recently that involves automated programmatic creation of simple geometric vector graphics. Mostly repeated composition of lines, arcs, and circles, with varying endpoint shapes. Learning a new programming language is not an obstacle - it'd be good to have the extra motivation, actually.
Can anyone recommend a language for which there are good libraries for this purpose (and such a library, of course)? A minor plus would be if it also has good libraries for making a web-app, but that's not high-priority since the actual image-generation can be separated from the web-app that delivers results without needing any conceptual changes, as long as I go with a thin client in that case.