Commit 3f924bf8 authored by Timothy Stack's avatar Timothy Stack

Turn on antialiasing in robotrack for the robots and text.

parent 58919d32
......@@ -818,6 +818,8 @@ public class RoboTrack extends JApplet {
Graphics2D G2 = scalebar_bimg.createGraphics();
G2.setFont(OurFont);
G2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
G2.setBackground(Color.white);
G2.setColor(Color.black);
G2.drawLine(0, 10, dis - 1, 10);
......@@ -838,6 +840,9 @@ public class RoboTrack extends JApplet {
g2.drawImage(floorimage, 0, 0, fw, fh, this);
g2.drawImage(scalebar_bimg, myWidth - 125, 0, this);
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
/*
* Then we draw a bunch of stuff on it, like the robots.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment