Hi all,
What is this and how do I contribute?
This is a list of Lua utility functions created by the Defold community. Functions should be generalized for use in any Defold project. Include a brief description of your function and be mindful of naming clarity. Please only include one function per reply for easy linking. If you have an alternative implementation of an already submitted function, please feel free to post it! I will keep the below list updated as best I can.
Conversions
Logarithmic Change of Base
Hex to Color
Bounds Checking
Clamp
Check Between Range
Check Within Rectangle
Other
Manhattan Distance
Sign of Number
Recursive Print
Low-Pass Filter (1) (2)
External Libraries
Happy Defolding!