[cairo] Cairo library for Ypsilon Scheme
wayo.cavazos at gmail.com
Wed May 26 13:39:44 PDT 2010
On Wed, 26 May 2010, Eduardo Cavazos wrote:
>> Ypsilon's Cairo library API is a direct reflection of the C API. I use macros
>> in a few places to make things a little more concise. For example:
>> (with-cairo cr
>> (scale 120 120)
>> (set_line_width 0.1)
>> (set_source_rgb 0 0 0)
On 05/26/2010 03:15 PM, M Joonas Pihlaja wrote:
> That's awesome.
> I would've expected names like set-line-width to be
> more scheme-like, but I'll take it as is!
Yeah, hyphens are definately more idiomatic for a high-level Scheme API.
For now, while these macros are developing, I decided to be conservative
about changing the names; at some point it'll be clear what the "high
level" api is and that'll be a good layer at which to switch to hyphens.
> If you want, feel free to add a blurb about it on the cairographics.org wiki.
OK. I added a link to Ypsilon on the 'bindings' wiki page.
More information about the cairo