MCPcopy Index your code
hub / github.com/faiface/pixel / SetComposeMethod

Method SetComposeMethod

pixelgl/window.go:459–461  ·  view source on GitHub ↗

SetComposeMethod sets a Porter-Duff composition method to be used in the following draws onto this Window.

(cmp pixel.ComposeMethod)

Source from the content-addressed store, hash-verified

457// SetComposeMethod sets a Porter-Duff composition method to be used in the following draws onto
458// this Window.
459func (w *Window) SetComposeMethod(cmp pixel.ComposeMethod) {
460 w.canvas.SetComposeMethod(cmp)
461}
462
463// SetSmooth sets whether the stretched Pictures drawn onto this Window should be drawn smooth or
464// pixely.

Callers

nothing calls this directly

Calls 1

SetComposeMethodMethod · 0.65

Tested by

no test coverage detected