Try Install Learn Blog API Packages GitHub
Pages

CanvasGlobalCompositeOperation

Options

Displays the source. The destination is ignored

Displays the destination on top of the source. The part of the destination that is outside the source is not shown

Displays the destination in the source. Only the part of the destination that is INSIDE the source is shown, and the source is transparent

Displays the destination out of the source. Only the part of the destination that is OUTSIDE the source is shown, and the source is transparent

Displays the destination over the source

Displays the source + the destination

Displays the source on top of the destination. The part of the source image that is outside the destination is not shown

Displays the source in the destination. Only the part of the source that is INSIDE the destination is shown, and the destination is transparent

Displays the source out of the destination. Only the part of the source that is OUTSIDE the destination is shown, and the destination is transparent

Displays the source over the destination

The source is combined by using an exclusive OR with the destination