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

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -