Implement dynamic cloud sizes, adjust cycle lengths

This commit is contained in:
Till Affeldt 2020-04-13 16:53:32 +02:00
parent 47530bb07e
commit fdc457bd09
9 changed files with 86 additions and 24 deletions

View file

@ -22,7 +22,7 @@ function utility.merge_tables(a, b)
end
-- see https://en.wikipedia.org/wiki/Logistic_function
function utility.logistic_growth(value, max, growth, midpoint)
function utility.sigmoid(value, max, growth, midpoint)
return max / (1 + math.exp(-growth * (value - midpoint)))
end