I'd like to announce Golang bindings for the Cairo graphics library:
There are other projects which aim to do the same thing , , .
However, all are incomplete -- compare the lengths of the relevant godoc
links -- and some appear abandoned.
I aimed to make this one complete and regular by taking an alternative
approach: I parse the C header to gather all the functions and types and
then generate the wrapper (in an idiomatic Go style) from there.
- I've written some example programs
at https://github.com/martine/gocairo/tree/master/example but I haven't
verified all the API works as expected.
- This implementation is still missing some of the advanced Cairo functions
such as text glyph/cluster management, raster sources, and some of the file
- There are a few more transformations of some of the API I'd like to do to
better match Go style; I have some gathered in the TODO list at
https://github.com/martine/gocairo/blob/master/notes.org . More
suggestions are welcome. For an example bikeshed, which is better:
AddColorStopRGBA(offset float64, r, g, b a float64)
AddColorStopRGBA(offset, r, g, b a float64)
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/d/optout.