change padding once more
This commit is contained in:
parent
ad67611601
commit
ca2bffeac8
|
@ -131,14 +131,14 @@ end})
|
||||||
|
|
||||||
table.insert(self, {'inElastic', function(t, a, p)
|
table.insert(self, {'inElastic', function(t, a, p)
|
||||||
return 1 - self.outElastic(1 - t, a, p)
|
return 1 - self.outElastic(1 - t, a, p)
|
||||||
end, {1, 4, 1, 'a'}, {0, 1, 0.3, 'p'}, overridemin = true})
|
end, {1, 3, 1, 'a'}, {0, 2, 0.3, 'p'}, overridemin = true})
|
||||||
table.insert(self, {'outElastic', function(t, a, p)
|
table.insert(self, {'outElastic', function(t, a, p)
|
||||||
return a * pow(2, -10 * t) * sin((t - p / (2 * pi) * asin(1/a)) * 2 * pi / p) + 1
|
return a * pow(2, -10 * t) * sin((t - p / (2 * pi) * asin(1/a)) * 2 * pi / p) + 1
|
||||||
end, {1, 4, 1, 'a'}, {0, 1, 0.3, 'p'}, overridemin = true})
|
end, {1, 3, 1, 'a'}, {0, 2, 0.3, 'p'}, overridemin = true})
|
||||||
table.insert(self, {'inOutElastic', function(t, a, p)
|
table.insert(self, {'inOutElastic', function(t, a, p)
|
||||||
return t < 0.5
|
return t < 0.5
|
||||||
and 0.5 * self.inElastic(t * 2, a, p)
|
and 0.5 * self.inElastic(t * 2, a, p)
|
||||||
or 0.5 + 0.5 * self.outElastic(t * 2 - 1, a, p)
|
or 0.5 + 0.5 * self.outElastic(t * 2 - 1, a, p)
|
||||||
end, {1, 4, 1, 'a'}, {0, 1, 0.3, 'p'}, overridemin = true})
|
end, {1, 3, 1, 'a'}, {0, 2, 0.3, 'p'}, overridemin = true})
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|
Loading…
Reference in New Issue