Class SKBlendMode


  • public final class SKBlendMode
    extends java.lang.Object
    Blend modes that the SKNode uses to compose with the framebuffer to produce blended colors.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long Add
      Blends the source and destination colors by adding them up.
      static long Alpha
      Blends the source and destination colors by multiplying the source alpha value.
      static long Multiply
      Blends the source and destination colors by multiplying them.
      static long MultiplyAlpha
      Blends the source and destination colors by multiplying them (with alpha).
      static long MultiplyX2
      Blends the source and destination colors by multiplying them and doubling the result.
      static long Replace
      Replaces the destination with the source (ignores alpha).
      static long Screen
      Blends the source and destination colors by multiplying one minus the source with the destination and adding the source.
      static long Subtract
      Blends the source and destination colors by subtracting the source from the destination.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • Alpha

        public static final long Alpha
        Blends the source and destination colors by multiplying the source alpha value.
        See Also:
        Constant Field Values
      • Add

        public static final long Add
        Blends the source and destination colors by adding them up.
        See Also:
        Constant Field Values
      • Subtract

        public static final long Subtract
        Blends the source and destination colors by subtracting the source from the destination.
        See Also:
        Constant Field Values
      • Multiply

        public static final long Multiply
        Blends the source and destination colors by multiplying them.
        See Also:
        Constant Field Values
      • MultiplyX2

        public static final long MultiplyX2
        Blends the source and destination colors by multiplying them and doubling the result.
        See Also:
        Constant Field Values
      • Screen

        public static final long Screen
        Blends the source and destination colors by multiplying one minus the source with the destination and adding the source.
        See Also:
        Constant Field Values
      • Replace

        public static final long Replace
        Replaces the destination with the source (ignores alpha).
        See Also:
        Constant Field Values
      • MultiplyAlpha

        public static final long MultiplyAlpha
        Blends the source and destination colors by multiplying them (with alpha).
        See Also:
        Constant Field Values