mirror of
https://github.com/photonstorm/phaser
synced 2024-12-24 03:53:28 +00:00
14 lines
247 B
JavaScript
14 lines
247 B
JavaScript
|
var Random = require('../geom/triangle/Random');
|
||
|
|
||
|
var RandomTriangle = function (items, triangle)
|
||
|
{
|
||
|
for (var i = 0; i < items.length; i++)
|
||
|
{
|
||
|
Random(triangle, items[i]);
|
||
|
}
|
||
|
|
||
|
return items;
|
||
|
};
|
||
|
|
||
|
module.exports = RandomTriangle;
|