| 478 | |
| 479 | template <class T> |
| 480 | static Color4<T> |
| 481 | divTupleR(Color4<T> &color, const tuple &t) |
| 482 | { |
| 483 | MATH_EXC_ON; |
| 484 | if(t.attr("__len__")() == 4) |
| 485 | return Color4<T>(extract<T>(t[0]) / color.r, |
| 486 | extract<T>(t[1]) / color.g, |
| 487 | extract<T>(t[2]) / color.b, |
| 488 | extract<T>(t[3]) / color.a); |
| 489 | else |
| 490 | throw std::invalid_argument ("Color4 expects tuple of length 4"); |
| 491 | } |
| 492 | |
| 493 | template <class T> |
| 494 | static Color4<T> |
nothing calls this directly
no outgoing calls
no test coverage detected