This website requires JavaScript.
Explore
Help
Sign in
mirrors
/
Pixel-Composer
Watch
1
Star
0
Fork
You've already forked Pixel-Composer
0
mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced
2024-12-27 07:26:33 +01:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
a8ad686f6c
Pixel-Composer
/
scripts
/
value_snap
/
value_snap.gml
4 lines
99 B
Text
Raw
Normal View
History
Unescape
Escape
Pack, Color mix
2023-03-19 09:17:39 +01:00
function value_snap(val, snap = 1) {
1.0.1 update
2022-12-19 13:35:30 +01:00
if(snap == 0) return val;
return round(val / snap) * snap;
}
Reference in a new issue
Copy permalink