All pastes #760735 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-11-04 07:55 UTC
rendered paste body
  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++;
  }