(Color4f[] colors)
| 38 | } |
| 39 | |
| 40 | public static float[] flattenArray(Color4f[] colors) { |
| 41 | float[] arr = new float[colors.length * 4]; |
| 42 | for (int i = 0; i < colors.length; ++i) { |
| 43 | arr[i * 4] = colors[i]._r; |
| 44 | arr[i * 4 + 1] = colors[i]._g; |
| 45 | arr[i * 4 + 2] = colors[i]._b; |
| 46 | arr[i * 4 + 3] = colors[i]._a; |
| 47 | } |
| 48 | return arr; |
| 49 | } |
| 50 | |
| 51 | public Color4f premultiply() { |
| 52 | if (_a == 1f) |
no outgoing calls
no test coverage detected