multAlpha( alpha )

Similar to 'setAlpha', this takes a 'mult' value, which is multiplied against the current alpha value. The result is capped to between 0.0 and 1.0 (which is the valid range for alpha numbers), and then set as the current alpha value.

multAlpha( alpha ) { ... }

If a block is provided, then the alpha value is reset to it's original value once the block has returned.

See also

setAlpha - getAlpha