What I'm trying to achieve
- A Bitmap that is filled with triangles.
- The triangles' separation depends on if the color change from one pixel to the next is too much.
- The color of each triangle depends on the median color value from the entire area of pixels inside of the triangle.
What I'm struggling with
Finding the best way to check for triangles under this condition.
What I've thought of but couldn't succeed
- Have a nested loop that checks for each pixel color by row and column of the bitmap, if it's a drastic change start going down, else go down-left, etc.
- Color every part on the Bitmap that has relatively the same color through Lists. Make triangles later.
Anything would be helpful, I can provide my current code if needed also a drastic color change is measured based on the tolerance variable
Edit
So I'd like to make a bitmap of an image (which I've done) and have the code color over that bitmap based on the conditions I layed out. The after process picture is basically what would happen if the tolerance variable is very high, but in general the triangles should be way smaller to perform finer color transitions. Thanks