Quote:
A continuation of this function is scaling of curves. One value is scaled and the others is scaled based on this.
It is a great idea but I'm a bit confused with the numbers.
Say f=frame v= value
f01 - v2
f02 - v4
f03 - v8
f04 - v1
Say f01 is the unscaled frame and f03 the scaled frame.
f01 - v2 (unaltered)
f02 - v4
f03 - v16 (scale factor is s=2.0)
f04 - v1
So scale for a general v is:
s(v) = a*v + b
s(2) = 1.0
s(8) = 2.0
1.0 = a*2 + b
2.0 = a*8 + b
Subtracting second from first equation:
2.0-1.0 = 1.0 = (a*8+b) - (a*2+b) = 6*a
Then a=1/6 and then b = 4/6 = 2/3
So s=v/6+2/3
Then s(4) = 4/6 + 2/3 = 8/6 = 1.333 so for f02 we have v=4*1.333 = 5.333
And so s(1)= 1/6 + 2/3 = 5/6 = 0.833 so for f04 we have v=1*0.833 = 0.833
Is that right?
-G
_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you
can contribute!
