[cairo] Strange behaviour on arc drawing with big line width
maurizio.berti at gmail.com
Fri Sep 19 17:04:09 PDT 2014
I'm writing a cairo python script, which loads graphics and animations from
a custom file to create "fancy" (and unuseful) graphics like those seen in
videogames and scifi movies.
I have a problem with arcs, though: I need to be able to draw them
interactively, with user given coords, start/end and line width. When I try
to draw arcs with a certain line width I have a strange behaviour: the
beginning of the line is not straight as it should be, you can see an
example of it here:
Here is the code I used for this test:
I'm using cairo 1.12.16 from the official Gentoo portage (the problem still
remains with the latest -r3 version in the portage), with
pycairo 1.10.0-r4, also latest stable from the portage.
CC'ing to bryce at osg.samsung.com who confirmed the issue on #cairo using
cairo 1.13.0~20140204-0ubuntu1, but was not present using
cairo 1.12.16-0ubuntu1.1~bryce~precise6, with little different results:
To draw single and simple "filled" arcs I could use lines and curves, but
that would affect the performances of my script (and would require a lot of
complex calculations), so I'm here to ask if someone can confirm that this
is a bug indeed.
È difficile avere una convinzione precisa quando si parla delle ragioni del
cuore. - "Sostiene Pereira", Antonio Tabucchi
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo