fogleman / gg

Go Graphics - 2D rendering in Go with a simple API.
https://godoc.org/github.com/fogleman/gg
MIT License
4.34k stars 352 forks source link

Allow to reset mask. #181

Open kwinso opened 1 year ago

kwinso commented 1 year ago

It'd be cool to have function like ResetMask to just remove current mask from the context. Now I have to do something like this:

mask.Clear() // assuming mask is another gg.Context with same size as dc
dc.SetMask(mask)