mirror of
https://github.com/photonstorm/phaser
synced 2024-12-20 10:03:50 +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;
|