Showing posts with label cairo. Show all posts
Showing posts with label cairo. Show all posts

Wednesday, August 13, 2008

cl-cairo2 updates: win32 and mac extensions

Thanks to the contributions Kei Suzuki, cl-cairo2 underwent quite a few changes. Most importantly, as Kei contributed Win32 and OS X-specific code, I decided to separate all parts of the library that use a GUI. So now if you load cl-cairo2 (using ASDF), only GUI-independent parts of the library will be loaded. If you need the rest, you will have to load cl-cairo2-x11, cl-cairo2-mac or cl-cairo2-win using ASDF. All of these put their functions in the :cl-cairo2 package, without creating a new one, so the organization of namespaces is simplified. Also, cl-cairo2 and the GUI extensions are still packaged into a single tarball, which you can download or install directly using ASDF-Install. Here are some screenshots contributed by Kei Suzuki: You can find the code for these in tutorial/lissajous.lisp and tutorial/lissajous-win.lisp.

Thursday, June 26, 2008

changes in cl-cairo2

Johann Korndoerfer kindly submitted a patch that adds patterns to cl-cairo2, and also includes some code cleanup. Here is the example Johann contributed to the tutorial, a rainbow created with patterns: Thanks for the nice work, Johann! I am happy that others also find cl-cairo2 useful. cl-cairo2 still suffers from the elusive floating point bug (possibly in libcairo), I am still working on that. In the meantime, you can work around that by not generating PS files directly, but converting them from PDF or SVG files. Since common-lisp.net appears to be down, I took the opportunity to migrate the repository to git, which I am now hosting on my webpage. I find git to be much more convenient than SVN, especially when it comes to ease of distribution. As before, the package remains ASDF-installable. Update: the GIT repository is here, but can also be found from the cliki page for cl-cairo2.