MCPcopy Create free account
hub / github.com/HumbleUI/Skija / drawTriangleStrip

Method drawTriangleStrip

shared/java/Canvas.java:699–702  ·  view source on GitHub ↗

Draws a triangle strip 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 positi

(@NotNull Point[] positions, @Nullable int[] colors, @NotNull Paint paint)

Source from the content-addressed store, hash-verified

697 * @see <a href="https://fiddle.skia.org/c/@Canvas_drawVertices_2">https://fiddle.skia.org/c/@Canvas_drawVertices_2</a>
698 */
699 @NotNull @Contract("_, _, _ -> this")
700 public Canvas drawTriangleStrip(@NotNull Point[] positions, @Nullable int[] colors, @NotNull Paint paint) {
701 return drawTriangleStrip(positions, colors, null, null, BlendMode.MODULATE, paint);
702 }
703
704 /**
705 * <p>Draws a triangle strip mesh, using clip and Matrix.</p>

Callers 1

drawVerticesMethod · 0.80

Calls 5

onNativeCallMethod · 0.95
_nDrawVerticesMethod · 0.95
getPtrMethod · 0.95
reachabilityFenceMethod · 0.95
flattenArrayMethod · 0.80

Tested by

no test coverage detected