Commits

Anonymous committed 6558f03

added note about alpha

Comments (0)

Files changed (1)

src/main/java/net/fishbulb/jcod/util/BlendMode.java

 
 /**
  * Holds predefined blend modes including all TCOD blend modes plus a few extensions.
+ * All blend functions preserve destination alpha except for Set, which uses source alpha.
+ * This isn't necessarily an accurate model, but it's usually what you want.
  * <p/>
  * The order of these is pretty arbitrary, and in any 0.x release branch, subject to change to suit my tastes.
  */
 public enum BlendMode implements BlendFunction {
 
 
-    /** Ignores the dest color and uses the source color. */
+    /** Ignores the dest color and uses the source color. Dest alpha is overwritten by source alpha. */
     Set { // TCOD_BKGND_SET
 
         @Override
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.