SCPrinters/Example/CurvesExample

= Curves Example =

Printers that use the Curves Level System are infinitely upgradable. The following are the two default curves in SCPrinters.

Exponential Curve
Here is the function that creates this curve [1] = function (x) // Exponential Curve local startAmount = 100 // Staring amount local minIncrease = 10 // minium increase between levels local decreaseModifier = 100 // how slow the amount increases

return math.Round(math.pow(2, x) / decreaseModifier + startAmount + (minIncrease * (x-1)), 0) end,

Square Root Curve
Here is the function that creates this curve [2] = function (x) local startAmount = 100 // Staring amount local minIncrease = 10 // minium increase between levels local decreaseModifier = 100 // how slow the amount increases

return math.Round(math.sqrt(x) * 100 + startAmount + (minIncrease * (x-1)) / decreaseModifier, 0) end