Commits

Chuck Adams  committed 6558f03

added note about alpha

  • Participants
  • Parent commits b88a9e9

Comments (0)

Files changed (1)

File 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