OpenGl es 2.0 draw line with color
<p>I want to color the line but not finding suitable API to do it in OpenGL es 2.0</p>

<pre><code>glDrawArrays ( GL_LINES , 0, 2 );
glLineWidth( width_test );
</code></pre>

<p>With above code, I am able to draw the line with some width. Now I want to color the same line. Can someone please guide me with the API ?</p>