(color)
| 328 | } |
| 329 | |
| 330 | function _arrayToColor(color) { |
| 331 | if (Lib.isArrayOrTypedArray(color)) { |
| 332 | var c = color[0]; |
| 333 | |
| 334 | if (Lib.isArrayOrTypedArray(c)) color = c; |
| 335 | |
| 336 | return ( |
| 337 | 'rgb(' + |
| 338 | color.slice(0, 3).map(function (x) { |
| 339 | return Math.round(x * 255); |
| 340 | }) + |
| 341 | ')' |
| 342 | ); |
| 343 | } |
| 344 | |
| 345 | return null; |
| 346 | } |
| 347 | |
| 348 | function arrayToColor(colors) { |
| 349 | if (!Lib.isArrayOrTypedArray(colors)) { |
no outgoing calls
no test coverage detected
searching dependent graphs…