1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 23:10:26 +00:00

band transition in Joukowsky anim

This commit is contained in:
Zeno Rogue 2018-10-28 02:16:03 +01:00
parent 6ec7023501
commit 6f0cdea2fc

View File

@ -538,11 +538,14 @@ void apply() {
if(joukowsky_anim) { if(joukowsky_anim) {
ld t = ticks / period; ld t = ticks / period;
t = t - floor(t); t = t - floor(t);
if(pmodel == mdBand) {
conformal::model_transition = t * 4 - 1;
}
else {
conformal::model_transition = t / 1.1; conformal::model_transition = t / 1.1;
vid.scale = (1 - conformal::model_transition) / 2.; vid.scale = (1 - conformal::model_transition) / 2.;
}
calcparam(); calcparam();
printf("scale = %lf tr = %lf t = %lf\n", vid.scale, conformal::model_transition, t);
printf("radius = %lf\n", vid.radius);
} }
} }