首页宝宝踢:先鼓起来、到顶才隐约浮出小脚丫(v26110648)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
|
||||
var VER = '26110647';
|
||||
var VER = '26110648';
|
||||
const $ = (s, c) => (c || document).querySelector(s);
|
||||
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
|
||||
|
||||
|
||||
12
js/bump.js
12
js/bump.js
@@ -473,12 +473,14 @@
|
||||
cx.fill();
|
||||
}
|
||||
function footprint(x, y, rx, ry, ang, k) {
|
||||
if (k < .15) return;
|
||||
const a = Math.min(1, (k - .15) / .6), f = .9;
|
||||
/* 11-07 用户纠正:「要按之前的踢法——先从页面底下把页面踢得鼓起来,隐隐约约,之后才能看清一个小小的脚丫子」
|
||||
→ 脚印缩小到鼓包的一半、软边,顶到六成以上才慢慢浮出来,到最高点也只是浅浅一层(不是贴上去的脚丫图) */
|
||||
if (k < .6) return;
|
||||
const t = (k - .6) / .4, a = t * t * (3 - 2 * t), f = .5;
|
||||
cx.save(); cx.translate(x, y); cx.rotate(ang); cx.scale(rx * f, ry * f);
|
||||
cx.shadowBlur = 3 * dpr;
|
||||
cx.fillStyle = cx.shadowColor = 'rgba(255,255,255,' + (.3 * a).toFixed(3) + ')'; soleShape(-.025, -.03);
|
||||
cx.fillStyle = cx.shadowColor = 'rgba(120,72,58,' + (.3 * a).toFixed(3) + ')'; soleShape(0, 0);
|
||||
cx.shadowBlur = 6 * dpr;
|
||||
cx.fillStyle = cx.shadowColor = 'rgba(255,255,255,' + (.2 * a).toFixed(3) + ')'; soleShape(-.03, -.035);
|
||||
cx.fillStyle = cx.shadowColor = 'rgba(120,72,58,' + (.2 * a).toFixed(3) + ')'; soleShape(0, 0);
|
||||
cx.restore();
|
||||
}
|
||||
function paint() {
|
||||
|
||||
Reference in New Issue
Block a user