

The DestinationIn blend mode displays only the area where the destination and source intersect, using the destination color: However, it's possible to specify that in the area where the source and destination intersect, the destination appears instead of the source, using the DestinationOver blend mode: This is the normal case, using the default blend mode of Normal.

The transparent pixels of the source allow the background to show through, while the blue source pixels obscure the background. Displaying the source on the destination produces the following result: The source is also a transparent rectangle except for a blue area that occupies the right and bottom two-thirds of the display surface. In the image above, the destination is a transparent rectangle except for a brown area that occupies the left and top two-thirds of the display surface. These compositing operators can best be described by considering the case of drawing two rectangles that contain transparent areas:
#BLEND MODE PSYKOPAINT HOW TO#
The Porter-Duff blend modes, named after Thomas Porter and Tom Duff, define 12 compositing operators that describe how to compute the color resulting from the composition of the source with the destination. Finally, the third column lists the Porter-Duff blend modes. The first column lists the 12 separable blend modes, while the second column lists the non-separable blend modes. The order that the members are listed in the table above is the same as in the BlendMode enumeration. The 28 members of the BlendMode enumeration can be divided into three categories: Separable For example, if you specify DestinationOver, then in the area where the source and destination intersect, the destination is drawn over the source. However, it's possible to specify a different blend mode for a different result. This occurs because the default blend mode is Normal, which means that the source is drawn over the destination. Each circle obscures the circle drawn underneath it. In this example, the cyan circle is drawn first, followed by the magenta circle, then the yellow circle. For more information, see this GitHub issue.īy default, the last drawn object obscures the objects drawn underneath it:
#BLEND MODE PSYKOPAINT MAC#
Blend modes are only implemented on iOS and Mac Catalyst.
