SHARE
TWEET

Untitled

a guest Oct 10th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var BOTTOM_RADIUS = 100;
  2. var MID_RADIUS = 60;
  3. var TOP_RADIUS = 30;
  4.  
  5.  
  6.  
  7. function start(){
  8.     var c1 = new Circle(BOTTOM_RADIUS);
  9.     c1.setPosition(getWidth()/2, getHeight() - BOTTOM_RADIUS);
  10.     c1.setColor(Color.grey);
  11.     add(c1);
  12.    
  13.     var c2 = new Circle(MID_RADIUS);
  14.     c2.setPosition(getWidth()/2, getHeight() - (BOTTOM_RADIUS*2+MID_RADIUS));
  15.     c2.setColor(Color.grey);
  16.     add(c2);
  17.    
  18.     var c3 = new Circle(TOP_RADIUS);
  19.     c3.setPosition(getWidth()/2, getHeight() - (BOTTOM_RADIUS*2+MID_RADIUS*2+TOP_RADIUS));
  20.     c3.setColor(Color.grey);
  21.     add(c3);
  22. }
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