MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / _blendModeToInt

Method _blendModeToInt

src/tools/texture-lab/renderer.js:233–246  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

231 }
232
233 _blendModeToInt(mode) {
234 switch (mode) {
235 case BLEND_MODES.OVERLAY:
236 return 0;
237 case BLEND_MODES.SOFT_LIGHT:
238 return 1;
239 case BLEND_MODES.MULTIPLY:
240 return 2;
241 case BLEND_MODES.SCREEN:
242 return 3;
243 default:
244 return 0;
245 }
246 }
247
248 _ditherMethodToInt(method) {
249 switch (method) {

Callers 4

_renderNoiseMethod · 0.95
_renderOverlayMethod · 0.95
_renderLightLeakMethod · 0.95
_renderBloomMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected