python - (py)cairo - fill -


is there way fill outside of closed path (polygon)?

background: i'd render maps coastlines - need fill sea blue color, thought easiest , in situation efficient fill outside of coastline polygon blue color.

thanks in advance!

you can add rectangle covering whole drawing area coastline path , set fill rule cairo.fill_rule_even_odd. calling fill() after fills area outside original path. (if choose correct orientation rectangle can skip setting fill rule.)


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -