Module m.util

Utility functions

Functions

lerp (a, b, t) Linear interpolation between to numbers
shuffle (t) Suffle a Lua table
random (list) Pick a random value from a list


Functions

lerp (a, b, t)
Linear interpolation between to numbers

Parameters:

  • a Start
  • b To
  • t Time (0.0 - 1.0)
shuffle (t)
Suffle a Lua table

Parameters:

  • t The table to shuffle
random (list)
Pick a random value from a list

Parameters:

  • list

Returns:

  1. value A random value
  2. index Index of the value
generated by LDoc 1.4.6 Last updated 2017-11-27 06:48:33