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? -

c++ - How to modify context menu of internet explorer using IDocHostUIHandler::ShowContextMenu? -

c# - Asterisk click to call -