how to create Duval Triangle in canvas
问题 I need to create a triangle which called a duval triangle. It looks like this: I need to do it with canvas. so far I succeed to create a triangle. But I don't know how to color it up and how to divide the area inside the triangle into a different colors like in the picture. Can I do such thing in canvas, is it possible to create duval triangle in canvas. Any help is blessed :). The code so far: var triangle = document.getElementById("triangle"); var ctx = triangle.getContext("2d"); var cw =