Move 3 rectangles up in their X but keep order of rectangles
Posted
by
Nicolas Martel
on Stack Overflow
See other posts from Stack Overflow
or by Nicolas Martel
Published on 2012-09-10T02:54:31Z
Indexed on
2012/09/10
3:38 UTC
Read the original article
Hit count: 265
java
|getresource
I have 3 rectangles being rendered here. Let's say i wanted to move them all above the line yet keep their order, how would i go about that? I tried subtracting the Y and height rather than adding the Y it but as expected, the lower rectangle goes at the top, middle stays in the middle and top goes to the bottom
before:
after:
So is there any simple solution to render them just above rather than having to change all values ?
© Stack Overflow or respective owner