Jump to content

PaintLib - Create good paints the OOP way


Bobrocket

Recommended Posts

It's 3:36am, I'm listening to Filthy Frank's weeaboo song. Forgive me for any mistakes.

https://github.com/Bobrocket/PaintLib

Code and usage there. There may be some references that I haven't cleaned up (eg to my own project), just try and fix them yourself lmao.

 

Enjoy, and sorry for the shit code.

Link to comment
Share on other sites

Screenshots plox!

I'll get some in the morning, you can make your own shit you don't need screenshots

EDIT: here's something basic I made for a test

8e53af4ae35b9b4ef57d5a7491c3a8d4.png

Code:

p = new Paint(this);
		DynamicLabel dl = new DynamicLabel(568, 353, "", new Font("Open Sans", Font.PLAIN, 14)) {

			@Override
			public void onUpdate(Paint parent) {
				setText("" + currentTime);
			}
			
		};
		try {
			
			BufferedImage bimage = ImageIO.read(new URL("http://i.imgur.com/2Q1c8gr.png"));
			p.add(new Picture(0, 338, bimage));
			
			bimage = ImageIO.read(new URL("http://i.imgur.com/mUn12cu.png"));
			p.add(new DynamicOrb(27, 365, dl, bimage, 25, 25));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		getBot().getCanvas().addMouseListener(p);
		getBot().getCanvas().addMouseMotionListener(p);
Edited by Bobrocket
  • Like 1
Link to comment
Share on other sites

  • 7 months later...

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...