We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ba3953 commit 465a435Copy full SHA for 465a435
docs/assets/js/tesseract.js
@@ -8,6 +8,7 @@
8
'use strict'
9
10
var tmx = 0.5, tmy = 0.5, mx = 0.5, my = 0.5
11
+ var tOff = Math.random() * 1000
12
13
document.addEventListener('mousemove', function (e) {
14
tmx = e.clientX / window.innerWidth
@@ -335,7 +336,7 @@
335
336
337
function frame(t) {
338
mx += (tmx - mx) * .06; my += (tmy - my) * .06
- var time = t * .001, dark = dk()
339
+ var time = t * .001 + tOff, dark = dk()
340
341
gl.bindFramebuffer(gl.FRAMEBUFFER, fboObj.fbo)
342
gl.viewport(0, 0, fboObj.w, fboObj.h)
@@ -433,7 +434,7 @@
433
434
}
435
436
function draw() {
- var t = performance.now() * 0.001
437
+ var t = performance.now() * 0.001 + tOff
438
ctx.clearRect(0, 0, S, S)
439
var cx = S / 2, cy = S / 2, sc = S * 0.26
440
0 commit comments