package state;

import java.awt.geom.*;
import java.awt.*;
import javax.swing.*;

class Wheel extends RoundRectangle2D.Double {

  public GradientPaint tread;
  
  Wheel(double x, double y, double w, double h) {
    super(x, y, w, h, .4*w, .4*w);
  }

  synchronized public GradientPaint setTread(float from_x, float from_y,
					     Color c1, float to_x, float to_y,
					     Color c2, boolean cy) {
    tread = new GradientPaint(from_x, from_y, c1, to_x, to_y, c2, cy);
    
    return tread;
  }
  
}
