Skip to content

Instantly share code, notes, and snippets.

@slawo-ch
Created December 23, 2019 10:54
Show Gist options
  • Save slawo-ch/2fa611454492349a81a4d584f54ab4e4 to your computer and use it in GitHub Desktop.
Save slawo-ch/2fa611454492349a81a4d584f54ab4e4 to your computer and use it in GitHub Desktop.
const tick = time => {
moveHeightMaps(time);
updateImageData();
c.putImageData(image, 0, 0);
requestAnimationFrame(tick);
};
requestAnimationFrame(tick);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment