diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-05-01 19:11:04 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-05-01 19:11:04 +0900 |
| commit | 742ee8ed6d300318089b6ae050dc123a88c85b4a (patch) | |
| tree | 9d0be85dd30161557f6900fe8731ad5853fc9001 /vhosts/blog/public/my-icon.js | |
| parent | 97ae778f538285f2e82c08485a7e23be6747a507 (diff) | |
| download | nsfisis.dev-742ee8ed6d300318089b6ae050dc123a88c85b4a.tar.gz nsfisis.dev-742ee8ed6d300318089b6ae050dc123a88c85b4a.tar.zst nsfisis.dev-742ee8ed6d300318089b6ae050dc123a88c85b4a.zip | |
feat(blog/icon): improve about page icon
Diffstat (limited to 'vhosts/blog/public/my-icon.js')
| -rw-r--r-- | vhosts/blog/public/my-icon.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vhosts/blog/public/my-icon.js b/vhosts/blog/public/my-icon.js index 92e32561..48c556da 100644 --- a/vhosts/blog/public/my-icon.js +++ b/vhosts/blog/public/my-icon.js @@ -110,7 +110,8 @@ const init = () => { } const [r, g, b] = randomChoice(colorMosaic); - ctx.fillStyle = `rgba(${r}, ${g}, ${b}, 0.75)`; + const a = 0.9 - f * 0.05; + ctx.fillStyle = `rgba(${r}, ${g}, ${b}, ${a})`; ctx.fillRect(x, y, 10, 10); } } |
