the additive half of lerp(texel, colour, strength); pair with a tint of 1 - strength
lerp(texel, colour, strength)
1 - strength
import { packTintAdd, TintedSprite } from '@datamoc/mw_games/two-d/render';declare const rat: TintedSprite;rat.colorAdd = packTintAdd(0x00ff00, 0.5); // half-way to green, the additive half of lerpTintrat.tint = 0x808080; // pair with 1 - strength (here 0.5) for the multiply half Copy
import { packTintAdd, TintedSprite } from '@datamoc/mw_games/two-d/render';declare const rat: TintedSprite;rat.colorAdd = packTintAdd(0x00ff00, 0.5); // half-way to green, the additive half of lerpTintrat.tint = 0x808080; // pair with 1 - strength (here 0.5) for the multiply half
the additive half of
lerp(texel, colour, strength); pair with a tint of1 - strength