[cairo] Cairo is non-deterministic?
dirk.schoenberger at sz-online.de
Mon Jan 2 06:43:33 PST 2006
>> translate(200, 30)
>> # draw up
>> rel_line_to(0, -100)
>> # draw line
>> rel_line_to(...) # draw your line bits
>> Note that the new_path()'s aren't strictly necessary, but it's good
>> defensive programming in case someone left a path in the context
>> you're drawing to.
> This doesn't work at all :(
If cairo shows any resemblance to Postscript rendering model, new_path
cleans the starting point, so the line_to calls should fail.
So in order to get results, you should add a call to
moveto after the new_path calls.
More information about the cairo