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:
parent
6ec7023501
commit
6f0cdea2fc
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user