-
Notifications
You must be signed in to change notification settings - Fork 1
Special Infos
Sven Ruppert edited this page Feb 25, 2018
·
1 revision
you need to install on your machine libpng and freetype to get rid of the linkage error. This will happen if you are using the 2D Libs from the JDK.
Graphics2D drawable = image.createGraphics();
// Draw something static
drawable.setStroke(new BasicStroke(5));
drawable.setColor(Color.WHITE);
drawable.fillRect(0, 0, 400, 400);
drawable.setColor(Color.BLACK);
drawable.drawOval(50, 50, 300, 300);
// Draw something dynamic
drawable.setFont(new Font(null, Font.PLAIN, 48));
drawable.drawString("Reloads=" + reloads, 75, 216);
brew install libpng freetype
for feedback or questions :
- Twitter : @SvenRuppert
- email: sven.ruppert (a) gmail.com