MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / setBlending

Function setBlending

Three.js/js/Three59dev.js:16036–16058  ·  view source on GitHub ↗
( value )

Source from the content-addressed store, hash-verified

16034 }
16035
16036 function setBlending( value ) {
16037
16038 if ( _contextGlobalCompositeOperation !== value ) {
16039
16040 if ( value === THREE.NormalBlending ) {
16041
16042 _context.globalCompositeOperation = 'source-over';
16043
16044 } else if ( value === THREE.AdditiveBlending ) {
16045
16046 _context.globalCompositeOperation = 'lighter';
16047
16048 } else if ( value === THREE.SubtractiveBlending ) {
16049
16050 _context.globalCompositeOperation = 'darker';
16051
16052 }
16053
16054 _contextGlobalCompositeOperation = value;
16055
16056 }
16057
16058 }
16059
16060 function setLineWidth( value ) {
16061

Callers 5

Three59dev.jsFile · 0.70
renderParticleFunction · 0.70
renderLineFunction · 0.70
renderFace3Function · 0.70
renderFace4Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected