Triangles are commonly drawn with the border property. Let’s see the process of coming up with a basic triangle.
Now divide the border into 4 segments:
Let’s give them different colors for now.
To extract a single triangle out of it:
For example, to retrieve the bottom triangle, delete the top triangle, and set the left and right triangles to transparent.
Free Resources