New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BlTransformAnimation rotate: xxx beInfinite doesn't work #188
Comments
I got the debugger too. Investigating it... |
I fixed (or workaround) the Screen.Recording.2022-11-16.at.18.24.26.mov(Code: http://ws.stfx.eu/L8NTBL0CG3QO) For the record, what I did are two changes in
and:
|
Only changing the angle from 180º to 40º, this happens: Screen.Recording.2022-11-16.at.18.29.20.mov(Code: http://ws.stfx.eu/N5AHZ9V9CJT) This bug is reproducible 100% and was canvas-independent. |
An infinite sequence animation of absolute animations DOES work:
|
Hi, while debugging this issue, I discovered more, and reported them here:
For the record, I mentioned this issue on the weekly update: https://pharoweekly.wordpress.com/2022/11/22/bloc-update-2/ |
The backgroundGeometry := BlAnnulusSectorGeometry new
innerRadius: 0.9;
outerRadius: 100;
startAngle: 0;
endAngle: 360;
yourself.
background := BlElement new
geometry: backgroundGeometry;
background: (Color white alpha: 0.1);
size: 100 @ 100;
yourself.
shape := BlElement new
geometry: (BlAnnulusSectorGeometry new
innerRadius: 0.9;
outerRadius: 100;
startAngle: 0;
endAngle: 225;
yourself);
background: Color blue;
size: 100 @ 100;
yourself.
container := BlElement new
size: 100 @ 100;
addChild: background;
addChild: shape;
yourself.
space := BlSpace new.
space addChild: container.
space root background: Color black.
space show.
animation := BlNumberTransition new
from: 0;
to: 360;
by: 1;
onStepDo: [ :val :el |
el geometry: (backgroundGeometry
startAngle: 0 + val % 360;
endAngle: 225 + val % 360;
yourself)
];
beInfinite;
yourself.
shape addAnimation: animation. |
Related: #196 |
Fix #188 Pair-programmed with Pablo last week
Hello,
I found a bug with the animation
It does the first 180 spin but the debugger open with
Instance of BlElementCachedExplicitTransformation did not understand #is2D
.I tested it with
rotate:
,scale:
andtranslate:
. Same bug each time.I didn't manage to investigate futher. I'm on the
dev-1.0
branch at d0ec7a0The text was updated successfully, but these errors were encountered: