rendering a triangle