diff --git a/pixelgl/window.go b/pixelgl/window.go index c9983597d6b7fea52e17cfdce91e5670499da33b..a84f1cff6fdddaba96a39f7f2b996204e1d2b524 100644 --- a/pixelgl/window.go +++ b/pixelgl/window.go @@ -381,6 +381,12 @@ func (w *Window) SetColorMask(c color.Color) { w.canvas.SetColorMask(c) } +// SetComposeMethod sets a Porter-Duff composition method to be used in the following draws onto +// this Window. +func (w *Window) SetComposeMethod(cmp pixel.ComposeMethod) { + w.canvas.SetComposeMethod(cmp) +} + // SetSmooth sets whether the stretched Pictures drawn onto this Window should be drawn smooth or // pixely. func (w *Window) SetSmooth(smooth bool) {