Jump to content

Help with paint


Kushitious

Recommended Posts

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);

 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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