Function Library |
0 | ||
just converted some common functions I use from p5.js for use here constrain() probably has been done a million times but I think map() will be extremely useful for anyone coding Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 function constrain(value, min, max) Sample use of map() Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 local currentMap = {width = 800, height = 400} e - had a sneaky mistake with the constrain function, hopefully nobody saw that Dernière modification le 1488656880000 |