How do I create an arrow Morph with code?
Last updated at 8:35 am UTC on 10 February 2017
Assuming a and b are your morphs:
arrow := (LineMorph from: a center to: b center color: Color red width: 2) makeForwardArrow.
arrow openInWorld.
If you want to update the position after the morphs move, do this:
arrow setVertices: {a center. b center}
Source: http://stackoverflow.com/questions/41432977/how-to-create-an-arrow-morph-in-smalltalk80-squeak-programmatically