Class: Arrow

Arrow(origin, target)

new Arrow(origin, target)

Draws an arrow from one point to another. Useful for vector diagramming.
Parameters:
Name Type Description
origin p5.Vector A vector object describing the origin
target p5.Vector A vector object describing the end point
Properties:
Name Type Description
grab bool Indicates if the Arrow is grabbable. (default: true)
draggable bool Indicates if the Arrow is draggable. (default: true)
showComponents bool Controls the visibility of the Arrow's components. (default: false)
color color The color of the Arrow. (default: white)
selected bool Indicates if the Arrow is currently selected. (default: false)
dragSelected bool Indicates if the Arrow is currently selected and dragged. (default: false)
isDragging bool Indicates if the Arrow is currently being dragged. (default: false)
width number Thickness of the Arrow. (default: 20px)
Arrow.display() method Displays the Arrow object.
Arrow.update() method Updates the Arrow object.
Source: