Clear the canvas
Create a cloth
Top left x coordinate
Top left y coordinate
Width of cloth
Height of cloth
No of segments
Pin offset
Particle info
Constraint info
Create a reactangle
Top left x coordinate
Top left y coordinate
Width of box
Height of box
Particle info
Constraint info
Create a rope
Function which returns x and y coordinate of each points based on indexes
No of segments
Particle info
Constraint info
Render all composites
Update all composites
Generated using TypeDoc
Canvas element