Advertisement
myshkin1

Untitled

Apr 17th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. To write a program which makes different shapes. There is a button that reduces the largest circle by 5px.
  2. Requirements:
  3. 1) With leftmouse click either a circle or rectangle. The probability of circle is 0.8, probability of rectangle is 0.2. For both shapes, the lengths are random(radius for circle or lengths of sides for rectangle) numbers between 10 to 100 (including).
  4. 2) There is a button which calls out Util.getBiggestCircle(main.getChildren()) – this means that shapes must be placed inside main.
  5. 3) When you get Circle object after pressing the button, then the radius of this shape must be reduced by 5px.
  6. 4) When reducing the size of a shape you need to use some kind of animation(for example reduces slowly during 0.5sec)
  7. When pressing the button multiple times all the circles should eventually disappear(radius=0).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement