forked from faiface/pixel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
faiface
committed
Apr 11, 2017
1 parent
41e5e8c
commit 02e0090
Showing
2 changed files
with
28 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package pixel | ||
|
||
// ComposeTarget is a BasicTarget capable of Porter-Duff composition. | ||
type ComposeTarget interface { | ||
BasicTarget | ||
|
||
// SetComposeMethod sets a Porter-Duff composition method to be used. | ||
SetComposeMethod(ComposeMethod) | ||
} | ||
|
||
// ComposeMethod is a Porter-Duff composition method. | ||
type ComposeMethod int | ||
|
||
// Here's the list of all available Porter-Duff composition methods. User ComposeOver for the basic | ||
// alpha blending. | ||
const ( | ||
ComposeOver ComposeMethod = iota | ||
ComposeIn | ||
ComposeOut | ||
ComposeAtop | ||
ComposeRover | ||
ComposeRin | ||
ComposeRout | ||
ComposeRatop | ||
ComposeXor | ||
ComposePlus | ||
ComposeCopy | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters