I have a set of 4 x/y coordinates that looks like this:
[{x: 10, y: 5}, {x:10, y:15}, {x:20, y:10}, {x:20, y:20}]
Is there a way to create an HTML element where each corner matches one of the coordinates in the array?
I am aware that this can be done using canvas, but I am struggling to figure out how to achieve it with HTML elements.
The array will always consist of 4 coordinate sets. The final shape may be rotated or skewed, but will always be a "valid" shape achievable through CSS transformations.