This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
Pixel-Composer
Watch
1
Star
0
Fork
0
You've already forked Pixel-Composer
mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced
2024-11-14 14:33:53 +01:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
fa00d1e2b2
Pixel-Composer
/
scripts
/
value_snap
/
value_snap.gml
4 lines
99 B
Plaintext
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 New Issue
Copy Permalink