forked from vgaNAR6ta/drags-and-nerds
tunnel: intiation de la com officielle
major_edits: mail dans liens + graff overlay + simple click dans panneau 'à propos'
This commit is contained in:
1 parent
a5c9c73d51
commit
7c6e33d624
36 files changed
+716
-94
No files matched your search
@@ -114,9 +114,10 @@ const params = {
|
||||
};
|
||||
|
||||
// Also refresh on page load
|
||||
window.addEventListener('load', refreshPattern);
|
||||
window.addEventListener('load', refreshPattern(506));
|
||||
window.addEventListener('resize', updateCanvasSize);
|
||||
|
||||
|
||||
// Initialize dat.gui
|
||||
const gui = new dat.GUI({ autoplace: false });
|
||||
gui.close();
|
||||
@@ -192,9 +193,12 @@ function render(timestamp) {
|
||||
animationID = requestAnimationFrame(render);
|
||||
}
|
||||
}
|
||||
function refreshBackground(seed){
|
||||
isPlaying = true;
|
||||
refreshPattern(seed);
|
||||
updateUniforms();
|
||||
animationID = requestAnimationFrame(render);
|
||||
}
|
||||
|
||||
// Start the animation loop
|
||||
isPlaying = true;
|
||||
refreshPattern();
|
||||
updateUniforms();
|
||||
animationID = requestAnimationFrame(render);
|
||||
refreshBackground(506);
|
||||
Reference in new issue
Block a user