| 464 | |
| 465 | template <class T> |
| 466 | static Color4<T> |
| 467 | divTupleL(Color4<T> &color, const tuple &t) |
| 468 | { |
| 469 | MATH_EXC_ON; |
| 470 | if(t.attr("__len__")() == 4) |
| 471 | return Color4<T>(color.r / extract<T>(t[0]), |
| 472 | color.g / extract<T>(t[1]), |
| 473 | color.b / extract<T>(t[2]), |
| 474 | color.a / extract<T>(t[3])); |
| 475 | else |
| 476 | throw std::invalid_argument ("Color4 expects tuple of length 4"); |
| 477 | } |
| 478 | |
| 479 | template <class T> |
| 480 | static Color4<T> |
nothing calls this directly
no outgoing calls
no test coverage detected