@@ -19,7 +19,9 @@ public class DraggableWaypoint implements MouseListener, MouseMotionListener {
19
19
20
20
static final int WAYPOINT_DIAMETER = 20 ;
21
21
private static final int BUFFER_WIDTH = 10 ;
22
- private static final Color PURPLE = new Color (148 , 0 , 211 );
22
+ private static final Color PURPLE = new Color (102 , 46 , 145 );
23
+ private static final Color YELLOW = new Color (253 , 184 , 19 );
24
+ private static final Color BLACK = new Color (25 , 25 , 25 );
23
25
24
26
private double x ;
25
27
private double y ;
@@ -90,7 +92,7 @@ private void drawHighlight(Graphics2D gc) {
90
92
private void drawPoint (Graphics2D gc ) {
91
93
int x = Plotter .convertXToPixel (getX ());
92
94
int y = Plotter .convertYToPixel (getY ());
93
- gc .setColor (Color . BLACK );
95
+ gc .setColor (BLACK );
94
96
gc .fillOval (x - (WAYPOINT_DIAMETER / 2 ), y - (WAYPOINT_DIAMETER / 2 ), WAYPOINT_DIAMETER , WAYPOINT_DIAMETER );
95
97
}
96
98
@@ -99,7 +101,7 @@ private void drawTail(Graphics2D gc) {
99
101
int y = Plotter .convertYToPixel (getY ());
100
102
int y2 = getTailY (y );
101
103
int x2 = getTailX (x );
102
- gc .setColor (Color . BLACK );
104
+ gc .setColor (BLACK );
103
105
gc .fillOval (x2 - (WAYPOINT_DIAMETER / 3 ), y2 - (WAYPOINT_DIAMETER / 3 ), (int )(WAYPOINT_DIAMETER / 1.5 ), (int )(WAYPOINT_DIAMETER / 1.5 ));
104
106
// gc.drawLine(x, y, x2, y2);
105
107
}
@@ -110,7 +112,7 @@ private void drawRobot(Graphics2D gc) {
110
112
int x = Plotter .convertXToPixel (getX ());
111
113
int y = Plotter .convertYToPixel (getY ());
112
114
113
- gc .setColor (Color . ORANGE );
115
+ gc .setColor (YELLOW );
114
116
gc .translate (x , y );
115
117
gc .rotate (-heading );
116
118
gc .draw (new RoundRectangle2D .Double (-width / 2 , -height / 2 , width , height , 10 , 10 ));
0 commit comments