mirror of
https://github.com/photonstorm/phaser
synced 2024-12-24 12:03:36 +00:00
14 lines
240 B
JavaScript
14 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;
|