Not sure if I formulate the correct answer but basically I need to know how to calculate the average size of a stretch quad, or something like taking the 2 diagonals AC and BD how can I calculate the average of them

The blue square show its original size and the pink lines shows when its deform, I need to calculate some sort of average so I can change its color in relation to how is deform if expands change to a lighter color if contracts change to darker color, hope that makes sense
Not quite sure what the question here is.
If you’re asking how to find the average diagonal length, just find the length of each diagonal, add them together and divide by two.
If you’re asking how to determine the area of the resultant shape, here are several formulas for finding the area of an arbitrary quadrilateral. They are all equivalent to the formula
Where
xmeans the cross-product.