MCPcopy Create free account
hub / github.com/melonjs/melonJS / getOpacity

Method getOpacity

packages/melonjs/src/renderable/renderable.js:580–582  ·  view source on GitHub ↗

* get the renderable alpha channel value * @returns {number} current opacity value between 0 and 1

()

Source from the content-addressed store, hash-verified

578 * @returns {number} current opacity value between 0 and 1
579 */
580 getOpacity() {
581 return this.alpha;
582 }
583
584 /**
585 * set the renderable alpha channel value<br>

Callers 7

preDrawMethod · 0.95
preDrawMethod · 0.80
drawMethod · 0.80
applyObjectOpacityFunction · 0.80
trail.spec.jsFile · 0.80
tmxtilemap.spec.jsFile · 0.80
drawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected