change padding once more

This commit is contained in:
jill 2021-09-18 04:01:45 +03:00
parent ad67611601
commit ca2bffeac8
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -18,7 +18,7 @@ require 'util' -- exports into global table
-- rendering constants -- rendering constants
padding = 14 padding = 16
outerpadding = 22 outerpadding = 22
margin = 6 margin = 6
dropdownWidth = 128 dropdownWidth = 128