MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / setBlending

Function setBlending

Three.js/js/Three62.js:16304–16326  ·  view source on GitHub ↗
( value )

Source from the content-addressed store, hash-verified

16302 }
16303
16304 function setBlending( value ) {
16305
16306 if ( _contextGlobalCompositeOperation !== value ) {
16307
16308 if ( value === THREE.NormalBlending ) {
16309
16310 _context.globalCompositeOperation = 'source-over';
16311
16312 } else if ( value === THREE.AdditiveBlending ) {
16313
16314 _context.globalCompositeOperation = 'lighter';
16315
16316 } else if ( value === THREE.SubtractiveBlending ) {
16317
16318 _context.globalCompositeOperation = 'darker';
16319
16320 }
16321
16322 _contextGlobalCompositeOperation = value;
16323
16324 }
16325
16326 }
16327
16328 function setLineWidth( value ) {
16329

Callers 4

Three62.jsFile · 0.70
renderSpriteFunction · 0.70
renderLineFunction · 0.70
renderFace3Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected