Calculate new gradient positions after the polygon it fills changes dimensions Calculate new gradient positions after the polygon it fills changes dimensions php php