Function epaint::tessellator::fill_closed_path

source ·
fn fill_closed_path(
    feathering: f32,
    path: &mut [PathPoint],
    color: Color32,
    stroke: &PathStroke,
    out: &mut Mesh,
)
Expand description

Tessellate the given convex area into a polygon.

Calling this may reverse the vertices in the path if they are wrong winding order.

The preferred winding order is clockwise.

A stroke is required so that the fill’s feathering can fade to the right color. You can pass &PathStroke::NONE if this path won’t be stroked.