Skip to content

Commit

Permalink
change: title color gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigercrl committed Jul 25, 2024
1 parent f432652 commit 4800cbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ function h2ColorChange(color: number[]) {
for (let i = 0; i < 3; i++) {
if (color[i] < 0xff && color[i + 3] === 0) {
color[i] += 0x01;
} else if (color[i] > 0 && color[i + 3] === 1) {
} else if (color[i] > 0x55 && color[i + 3] === 1) {
color[i] -= 0x01;
} else if (color[i] === 0xff && color[i + 3] === 0) {
color[i] -= 0x01;
color[i + 3] = 1;
} else if (color[i] === 0 && color[i + 3] === 1) {
} else if (color[i] === 0x55 && color[i + 3] === 1) {
color[i] += 0x01;
color[i + 3] = 0;
}
Expand Down

0 comments on commit 4800cbb

Please sign in to comment.