MCPcopy Create free account
hub / github.com/JetBrains/skija / drawTriangles

Method drawTriangles

shared/java/Canvas.java:478–481  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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>

Callers 2

drawVerticesMethod · 0.80
mainMethod · 0.80

Calls 4

onNativeCallMethod · 0.95
_nDrawVerticesMethod · 0.95
flattenArrayMethod · 0.95
getPtrMethod · 0.95

Tested by

no test coverage detected