Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mamezito-zz/fe9b4ec4a5be827119d237ca7ca756c3 to your computer and use it in GitHub Desktop.
Save mamezito-zz/fe9b4ec4a5be827119d237ca7ca756c3 to your computer and use it in GitHub Desktop.
utils modulate
if pageComponent.x<350
layerA.x = Utils.modulate(pageComponent.x,[0,350],[0,100],true)
else if pageComponent.x>350
layerA.x = Utils.modulate(pageComponent.x,[350,1050],[100,1000],true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment