render a triangle