Path Creation
Last updated
Last updated
There are two ways to create a path in valora.
You could use draw commands on the canvas which immediately result in the path, but the path can only be drawn and not held for mutation or other work.
Alternatively, you could use some types provided by valora to define the path in a way you can hold, mutate, and otherwise do work with. For example, this code which repeats the triangle scaling down each time:
Valora provides Ngon for equilateral shapes, Ellipse for ellipses, and Polygon for all other shapes.