Asking Gemini spit out this:
https://godbolt.org/z/fzfnY6r39 - using a brush
https://godbolt.org/z/hdKe1b71P - using triangles for miter support.
I suggest you read through the sibling comments.