(mode)
| 55 | * @returns {string} the melonJS blend mode name |
| 56 | */ |
| 57 | export 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). |
no outgoing calls
no test coverage detected