MCPcopy Create free account
hub / github.com/melonjs/melonJS / tiledBlendMode

Function tiledBlendMode

packages/melonjs/src/level/tiled/TMXUtils.js:57–62  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

55 * @returns {string} the melonJS blend mode name
56 */
57export function tiledBlendMode(mode) {
58 if (typeof mode === "undefined" || mode === "normal") {
59 return "normal";
60 }
61 return mode === "add" ? "lighter" : mode;
62}
63
64/**
65 * Apply an opacity multiplier to a renderable and its child renderable (if any).

Callers 4

readImageLayerFunction · 0.90
constructorMethod · 0.90
tmxutils.spec.jsFile · 0.90
tmxtilemap.spec.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected