Contents

meshGradient(_:)

Returns a shading instance that fills with a mesh gradient.

Declaration

static func meshGradient(_ mesh: MeshGradient) -> GraphicsContext.Shading

Parameters

  • mesh:

    The mesh gradient defining the filled colors.

Return Value

A shading that fills using the mesh gradient.