(input, color)
| 18 | * @return {Phaser.Display.Color} A Color object. |
| 19 | */ |
| 20 | var ObjectToColor = function (input, color) |
| 21 | { |
| 22 | if (!color) { return new Color(input.r, input.g, input.b, input.a); } |
| 23 | |
| 24 | return color.setTo(input.r, input.g, input.b, input.a); |
| 25 | }; |
| 26 | |
| 27 | module.exports = ObjectToColor; |
no outgoing calls
no test coverage detected
searching dependent graphs…