Anonymous
public text v1 · immutable void doPoints(Graphics g)
{
g.drawLine((int)curPoint.x, (int)curPoint.y + 525, (int)lastPoint.x, (int)lastPoint.y + 525);
lastPoint.x = curPoint.x;
lastPoint.y = curPoint.y;
curPoint.x++;
curPoint.y += 1 - (Math.random() * 2);
if (curPoint.y > 25) curPoint.y = 25;
else if (curPoint.y < -25) curPoint.y = -25;
ang++;
}