Enum Class BlendableEntity.BlendMode

java.lang.Object
java.lang.Enum<BlendableEntity.BlendMode>
com.codingame.gameengine.module.entities.BlendableEntity.BlendMode
All Implemented Interfaces:
Serializable, Comparable<BlendableEntity.BlendMode>, Constable
Enclosing class:
BlendableEntity<T extends Entity<?>>

public static enum BlendableEntity.BlendMode extends Enum<BlendableEntity.BlendMode>
The list of supported PIXI blend modes and their associated constant.
See Also:
  • Enum Constant Details

    • NORMAL

      public static final BlendableEntity.BlendMode NORMAL
      No pixel blend, only the values of the top layer are kept.
    • ADD

      public static final BlendableEntity.BlendMode ADD
      Adds pixel values of one layer with the other.
    • MULTIPLY

      public static final BlendableEntity.BlendMode MULTIPLY
      Multiplies the numbers for each pixel of the top layer with the corresponding pixel for the bottom layer. The result is a darker picture.
    • SCREEN

      public static final BlendableEntity.BlendMode SCREEN
      The values of the pixels in the two layers are inverted, multiplied, and then inverted again. The result is a brighter picture.
  • Method Details

    • values

      public static BlendableEntity.BlendMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BlendableEntity.BlendMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null