1
Tezos 2023-10-01 09:08:18 +08:00
lodash
|
3
rabbbit 2023-10-01 12:13:15 +08:00
svg + requestAnimationFrame
字符的更新是算出来的 在 function J(e) 里,看不懂谁解释下吧。 |
4
rabbbit 2023-10-01 12:50:34 +08:00
旋转的主要的代码就这段
for (var i = "", r = "", s = 1 - (2 * n) / B.length, c = 0; c < I; c++) { var o = (2 * c) / I - 1, d = Math.sqrt(o * o + s * s), l = (0.1 * a) / Z(0.1, d), f = Math.sin(l), b = Math.cos(l), u = o * f - s * b, m = Math.round(((o * b + s * f + 1) / 2) * I), h = Math.round(((u + 1) / 2) * T.length) % T.length, g = m < 0 || m >= I || h < 0 || h >= B.length ? " " : T[h][m] || " "; } |