Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vector graphics library for Common Lisp

Could someone suggest a good library for vector graphics?
Several libraries support drawing shapes, what I need is a library that can save to a vector format.

edit: I must admit I didn't do enough googling before posting.

cl-vectors seems to be maintained, advanced and documented.
vecto seems to be maintained, advanced-enough and documented-enough interface for it

Still I am used to cl libraries not being what they seem, so if anyone has some personal experience, please share

like image 577
sabof Avatar asked Dec 04 '11 19:12

sabof


2 Answers

Besides CL-SVG, CL-PDF seems to be another option.

EDIT: another recommendation

I've looked further into the subject, since I'm interested in this myself, and found one library that supports both saving to files (PS, PDF, SVG, and PNG) and drawing on the screen (GTK2 and X11): cl-cairo2. It seems really the best choice if you need both and aren't already bound to another windowing library.

like image 62
Rörd Avatar answered Nov 09 '22 17:11

Rörd


I have very positive experience with vecto, but I used it for generating PNG files (various graphs). It's quite easy to use and user-friendly. But, as far as I know, it can't save to any vector format.

If you want to write to some vector format, CL-SVG is, probably, the only reasonable choice, but I didn't try it.

like image 7
Vsevolod Dyomkin Avatar answered Nov 09 '22 18:11

Vsevolod Dyomkin