SHARE
TWEET

Untitled

a guest Feb 12th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  public void paint(Graphics g) {
  2.         Graphics2D G = (Graphics2D) g;
  3.         G.translate(FCoordinates[0], FCoordinates[1]);
  4.         G.rotate(inRad(Degrees));
  5.         G.setColor(FOval);
  6.         G.fillOval(-FSizes[0] / 2, -FSizes[1] / 2, FSizes[0], FSizes[1]);
  7.         G.rotate((-2) * inRad(Degrees));
  8.         G.setColor(FRectangle);
  9.         G.fillRect(-FSizes[0] / 2 + 10, -FSizes[1] / 2 + 10, FSizes[0] - 20, FSizes[1] - 20);
  10.         Degrees += 15;
  11.         if(Degrees >= 360) {
  12.             Degrees = Degrees - 360;
  13.         }
  14.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top