void drawPoints(){
float spacing=20;
//printf( "%f %f\n", mouseDX,mouseDY );
Vec2d v = Vec2d();
//if ( mouseX != prevX || mouseY != prevY){//without spacing
if ((mouseDX - spacing >= prevX || mouseDX + spacing <= prevX) || (mouseDY - spacing >= prevY || mouseDY+spacing<= prevY)){
v.x = mouseDX;
v.y = mouseDY;
prevX = v.x;
prevY = v.y;
drawLinePoints[pointCounter] = v;
pointCounter++;
// printf( "%f %f\n", mouseDX, mouseDY );
}
for (int i = 1; i < pointCounter; i++){// +1 gets rid of zero zero point
Vec2d p = drawLinePoints[i];
// drawLine(i);//draws as line
glColor3f( 255,0,0 );
drawStepLine(i); // draws steped line
//drawWaveLine(i);
glColor3f( 0,0,255 );
drawArrowLine(i);
// glVertex2f(p.x, p.y); // puts points along line taake out for line draw
// printf( "%f %f\n", p.x,p.y);
}
}