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

Method drawTriangleFan

shared/java/Canvas.java:775–778  ·  view source on GitHub ↗

Draws a triangle fan 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 position

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

Source from the content-addressed store, hash-verified

773 * @see <a href="https://fiddle.skia.org/c/@Canvas_drawVertices_2">https://fiddle.skia.org/c/@Canvas_drawVertices_2</a>
774 */
775 @NotNull @Contract("_, _, _ -> this")
776 public Canvas drawTriangleFan(@NotNull Point[] positions, @Nullable int[] colors, @NotNull Paint paint) {
777 return drawTriangleFan(positions, colors, null, null, BlendMode.MODULATE, paint);
778 }
779
780 /**
781 * <p>Draws a triangle fan 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