[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Announcing a re spawned rcairo

Øyvind Kolås

2/8/2005 4:26:00 PM

Announcing a re spawned rcairo
=============================

rcairo[1] is a cairo[2] extension for ruby.

Cairo is a resolution and device independent vector graphics drawing
library, which provides a postscript like drawing model. The release
contains some simple tests, and some not so simple tests utilizing
cairo through ruby (samples/canvas contains a small windowing system.

Features
========

- PNG writing
- interactive applications using gtk+ and hardware acceleration.

Download
========

The extension is available as a tarball[3] or from cairo CVS[4] see
the cairo cvs instructions[5] for information on how to get rcairo and
some of its dependencies from cvs. See the README[6] for spartan build
instructions, rcairo uses setup.rb and is hopefully easy to wrap up
for gems and RPA.

To be done
==========

- Review API/conventions.
- patterns (for gradients, and repeating images).
- binding of cairo-svg for svg rendering support.
- integration with sdl extension, for easy platform independent
(albeit not hardware accelerated) use.
- PDF writing.
- integration with pango extension, for unicode based text layout capabilities.
- integration with the native support in gtk+
- integration with other toolkits?
- documentation

Feedback and patches are appreciated, especially regarding how cairo
code should be used from ruby. Most of the fancy things can be added
as syntactic sugar, but I am uncertain how to handle for instance
enumerated values in a good way.

]====----

[1] - http://cairographics....
[2] - http://cairogra... - "introduction - cairo"
[3] - http://cairogra...~pippin/cairo/ruby/ - "download
location for tarball"
[4] - http://cvs.cairographics.o... - "cairo CVS - directory
/cvs/cairo : rcairo"
[5] - http://cairogra...download - "download - cairo"
[6] - http://cvs.cairographics.o...README?view=auto - "README for rcairo"

Attachments: a png file, and the ruby script used to generate it, just
to give a taste of the API, more samples exist in the release. Mail
with attachments bounced from list, placing the sample at [3] for now.

Happy drawing.

/Øyvind K./pippin

--
Software patents hinder progress | http://swpat...
Web : http://pippin...



2 Answers

Brian Schröder

2/8/2005 9:10:00 PM

0

Hello Øyvind,

I'm shure it is a nice project, but my in-head spam deletion algorithm nearly send my finger to the delete button, because the header line seemed to contain so much noise. "a re spawned rcairo" seemed a bit like "a re you hav1ng your dose of v1agra" to me ;)

I'm happy to have stopped myself in time, because I think I could need this later.

best regards,

Brian

On Wed, 9 Feb 2005 01:26:09 +0900
Øyvind Kolås <islewind@gmail.com> wrote:

> Announcing a re spawned rcairo
> =============================
>
> rcairo[1] is a cairo[2] extension for ruby.
>
> Cairo is a resolution and device independent vector graphics drawing
> library, which provides a postscript like drawing model. The release
> contains some simple tests, and some not so simple tests utilizing
> cairo through ruby (samples/canvas contains a small windowing system.
>
> Features
> ========
>
> - PNG writing
> - interactive applications using gtk+ and hardware acceleration.
>
> Download
> ========
>
> The extension is available as a tarball[3] or from cairo CVS[4] see
> the cairo cvs instructions[5] for information on how to get rcairo and
> some of its dependencies from cvs. See the README[6] for spartan build
> instructions, rcairo uses setup.rb and is hopefully easy to wrap up
> for gems and RPA.
>
> To be done
> ==========
>
> - Review API/conventions.
> - patterns (for gradients, and repeating images).
> - binding of cairo-svg for svg rendering support.
> - integration with sdl extension, for easy platform independent
> (albeit not hardware accelerated) use.
> - PDF writing.
> - integration with pango extension, for unicode based text layout capabilities.
> - integration with the native support in gtk+
> - integration with other toolkits?
> - documentation
>
> Feedback and patches are appreciated, especially regarding how cairo
> code should be used from ruby. Most of the fancy things can be added
> as syntactic sugar, but I am uncertain how to handle for instance
> enumerated values in a good way.
>
> ]====----
>
> [1] - http://cairographics....
> [2] - http://cairogra... - "introduction - cairo"
> [3] - http://cairogra...~pippin/cairo/ruby/ - "download
> location for tarball"
> [4] - http://cvs.cairographics.o... - "cairo CVS - directory
> /cvs/cairo : rcairo"
> [5] - http://cairogra...download - "download - cairo"
> [6] - http://cvs.cairographics.o...README?view=auto - "README for rcairo"
>
> Attachments: a png file, and the ruby script used to generate it, just
> to give a taste of the API, more samples exist in the release. Mail
> with attachments bounced from list, placing the sample at [3] for now.
>
> Happy drawing.
>
> /Øyvind K./pippin
>
> --
> Software patents hinder progress | http://swpat...
> Web : http://pippin...
>



Aria Stewart

2/8/2005 10:11:00 PM

0


> Feedback and patches are appreciated, especially regarding how cairo
> code should be used from ruby. Most of the fancy things can be added
> as syntactic sugar, but I am uncertain how to handle for instance
> enumerated values in a good way.

Packaged up in PLD's CVS tree. Delightfully easy to make an RPM of. Good
clean work!

Ari