Skip to content

Commit

Permalink
BlOSpace removed and example fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Enzo-Demeulenaere authored and tinchodias committed Jan 9, 2024
1 parent 68761a8 commit a4985bd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Bloc-Examples/BlAnimationExamplesTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,27 @@ BlAnimationExamplesTest class >> ballsAnim [
anims := OrderedCollection new.
els := OrderedCollection new.

(1 to: 100) do: [ :i |
| el tr alp ii |
ii := i % 25.
el := (BlEllipseGeometry new extent: 30 @ 30) asElement
1 to: 10 do: [ :i |
| el tr alp |
el := BlEllipseGeometry new asElement
background: (Color white alpha: 0);
position: ii * 15 @ 10.
position: i * 15 @ 10;
size: 50 @ 50.

tr := BlTransformAnimation new
target: el;
transformDo: [ :aBuilder |
aBuilder translateBy:
ii * 15 @ (500 - (30 * (i / 25) ceiling)) ];
i * 15 @ (500 - (30 * (i / 25) ceiling)) ];
delay: 80 milliSeconds * i;
duration: 500 milliSeconds;
duration: 5000 milliSeconds;
easing: BlEasing bounceOut.

alp := BlColorTransition new
from: (Color white alpha: 0);
to: Color random;
delay: 80 milliSeconds * i;
duration: 100 milliSeconds;
duration: 1000 milliSeconds;
onStepDo: [ :c | el background: c ].
anims addAll: {
tr.
Expand Down

0 comments on commit a4985bd

Please sign in to comment.