mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-26 15:06:22 +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;
|
|
} |