Skip to content

Commit

Permalink
Fix incorrect saturate blend mode mapping (pixijs#8458)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-Marcou committed Jun 30, 2022
1 parent 85ba270 commit a13d800
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { canUseNewCanvasBlendModes } from './canUseNewCanvasBlendModes';
* @param {string[]} [array=[]] - The array to output into.
* @returns {string[]} Mapped modes.
*/
// TODO after upgrading to typeScript 4.6, replace `string[]` with `GlobalCompositeOperation[]`
export function mapCanvasBlendModesToPixi(array: string[] = []): string[]
{
if (canUseNewCanvasBlendModes())
Expand All @@ -27,7 +28,7 @@ export function mapCanvasBlendModesToPixi(array: string[] = []): string[]
array[BLEND_MODES.DIFFERENCE] = 'difference';
array[BLEND_MODES.EXCLUSION] = 'exclusion';
array[BLEND_MODES.HUE] = 'hue';
array[BLEND_MODES.SATURATION] = 'saturate';
array[BLEND_MODES.SATURATION] = 'saturation';
array[BLEND_MODES.COLOR] = 'color';
array[BLEND_MODES.LUMINOSITY] = 'luminosity';
}
Expand Down

0 comments on commit a13d800

Please sign in to comment.