draws a triangle