mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-10 20:45:35 +01:00
4 lines
99 B
Plaintext
4 lines
99 B
Plaintext
function value_snap(val, snap = 1) {
|
|
if(snap == 0) return val;
|
|
return round(val / snap) * snap;
|
|
} |