Polygon Shapes
Draw custom silhouettes with polygon() point lists.
Points around the box
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
▲
triangle
◇
diamond
hex
hexagon
- List points as
x ypairs in order around the shape. - The browser connects the last point back to the first.
- Keep polygons simple so the visible area stays readable.