phaser/v3/src/actions/SetAlpha.js

14 lines
240 B
JavaScript
Raw Normal View History

2017-03-28 13:01:35 +00:00
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;