phaser/v3/src/actions/SetAlpha.js
2017-03-28 14:01:35 +01:00

13 lines
240 B
JavaScript

var SetAlpha = function (items, value, step)
{
if (step === undefined) { step = 0; }
for (var i = 0; i < items.length; i++)
{
items[i].alpha = value + (i * step);
}
return items;
};
module.exports = SetAlpha;