Jump to content

Help with paint


Recommended Posts

Posted

Im trying to add something like this. Any help is appreciated.

 

0316c6f2e0ea3014ded25b65066e6c1d.png

 

Something like this should do it:


// Set colour to white
g.setColor(Color.white);

// Get current mouse position
Point mousePoint = getMouse().getPosition();

// Draw a rectangle starting at x-10, y-10, with width and height of 20 
g.drawRect(mousePoint.x - 10, mousePoint.y - 10, 20, 20);

// Draw a line from top of screen (0), to bottom (500), with mouse x coordinate
g.drawLine(mousePoint.x, 0, mousePoint.x, 500);

// Draw a line from left of screen (0), to right (800), with mouse y coordinate
g.drawLine(0, mousePoint.y, 800, mousePoint.y);

 

Posted (edited)

Im trying to add something like this. Any help is appreciated.

 

0316c6f2e0ea3014ded25b65066e6c1d.png

Lol'd at the image *cough*http://osbot.org/forum/topic/87033-viliuks-smplringsodueling/  https://i.gyazo.com/c59be2b02f7c4ee5849e8960848b2600.png *cough*

But do as explv said, its literally the same thing I have or you could have just asked me how to do it doge.png

Edited by Viliuks
  • Like 2
Posted

Lol'd at the image *cough*http://osbot.org/forum/topic/87033-viliuks-smplringsodueling/  https://i.gyazo.com/c59be2b02f7c4ee5849e8960848b2600.png *cough*

But do as explv said, its literally the same thing I have or you could have just asked me how to do it doge.png

I did ask you lmao, you said do getMouse.setColor; or some shit.

anyway Thanks for the help guys i got it done.

  • Like 1
Posted (edited)

I did ask you lmao, you said do getMouse.setColor; or some shit.

anyway Thanks for the help guys i got it done.

I don't recall you asking me? doge.png

Eitherway, I don't bite ask me stuff n things

 

EDIT: nvm I remember, but you didn't specify how you want it to be drawn, I thought you meant to set the default osbots cursor ;-;

Edited by Viliuks
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...