I remixed PullJosh's incircle calculator to see if it could be used for drawing triangles. It works but this version naively uses a recursion stopper that is just based on depth of recursion which is very inefficient. A better solution would look at the size of the triangle remaining to be filled. However I haven't coded that up yet because I need to think about the case where we have a long thin triangle - I think the test has to be done separately for each of the three recursive calls rather than once at the entrance to the recursion - which seems wrong. On pause until I've thought about this a little more... (it was a quick hack while at the coffee shop!)
Incircle maths from PullJosh.