Hi Filip,
That is fantastic.
One more question if I may Filip;
if I wanted do to the same, but have the corners curved/rounded, would that be possible?
I would now guess you add in 4 extra points and space them out a small amount and then code in some kind of Bend between two points, maybe linked to a slider of some sort to adjust the bend/curve amount.