add Window.SetComposeMethod
This commit is contained in:
parent
3d3f1c6e11
commit
219559cf20
|
@ -381,6 +381,12 @@ func (w *Window) SetColorMask(c color.Color) {
|
||||||
w.canvas.SetColorMask(c)
|
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
|
// SetSmooth sets whether the stretched Pictures drawn onto this Window should be drawn smooth or
|
||||||
// pixely.
|
// pixely.
|
||||||
func (w *Window) SetSmooth(smooth bool) {
|
func (w *Window) SetSmooth(smooth bool) {
|
||||||
|
|
Loading…
Reference in New Issue