mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 14:36:13 +01:00
4 lines
No EOL
99 B
Text
4 lines
No EOL
99 B
Text
function value_snap(val, snap = 1) {
|
|
if(snap == 0) return val;
|
|
return round(val / snap) * snap;
|
|
} |