function drawLine (client-side)
Available since version: 0.3.0
This function will draw 2d line on the screen using pixel coordinates.
Declaration
void drawLine(float x1, float y1, float x2, float y2, int r, int g, int b)
Parameters
floatx1: the pixel position on X axis of the begin point.floaty1: the pixel position on Y axis of the begin point.floatx2: the pixel position on X axis of the end point.floaty2: the pixel position on Y axis of the end point.intr: the red color component in RGB model.intg: the green color component in RGB model.intb: the blue color component in RGB model.