toShape

fun PShape.toShape(): Shape(source)

Converts this PShape instance into a Shape instance.

This function processes the contours of the PShape and transforms them into the corresponding contours of a Shape object.

Return

A Shape object representing the converted PShape.