Draws a triangle mesh, using clip and Matrix. If paint contains an Shader, the shader is mapped using the vertices' positions. If vertices colors are defined in vertices, and Paint paint contains Shader, BlendMode mode combines vertices colors with Shader. @param positions t
(@NotNull Point[] positions, @Nullable int[] colors, @NotNull Paint paint)
| 476 | * @see <a href="https://fiddle.skia.org/c/@Canvas_drawVertices_2">https://fiddle.skia.org/c/@Canvas_drawVertices_2</a> |
| 477 | */ |
| 478 | @NotNull @Contract("_, _, _ -> this") |
| 479 | public Canvas drawTriangles(@NotNull Point[] positions, @Nullable int[] colors, @NotNull Paint paint) { |
| 480 | return drawTriangles(positions, colors, null, null, BlendMode.MODULATE, paint); |
| 481 | } |
| 482 | |
| 483 | /** |
| 484 | * <p>Draws a triangle mesh, using clip and Matrix.</p> |
no test coverage detected