Have a snippet for a simple cross which I use in my unicows script:
@Override
public void onPaint(Graphics2D g) {
g.setRenderingHints(new RenderingHints(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON)); //anti aliasing
g.drawLine(script.mouse.getPosition().x - 5,
script.mouse.getPosition().y + 5,
script.mouse.getPosition().x + 5,
script.mouse.getPosition().y - 5); //line 1
g.drawLine(script.mouse.getPosition().x + 5,
script.mouse.getPosition().y + 5,
script.mouse.getPosition().x - 5,
script.mouse.getPosition().y - 5); //line 2
}
apa