Skip to content

Commit 0c16bce

Browse files
fix: enable watermark and adjust canvas dimensions and text styling
1 parent 8cb84f7 commit 0c16bce

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/routes/+page.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { onMount } from 'svelte';
77
import clippys, { clippyCount } from '$lib/clippys';
88
9-
let watermark = $state(false)
9+
let watermark = $state(true)
1010
let hex = $state("#ffffff")
1111
let retry: number | null = $state(null)
1212
let noMouse = $state(false)
@@ -50,8 +50,8 @@
5050
clippyCanvas[i] = canvas;
5151
}
5252
53-
canvas.width = 243;
54-
canvas.height = 243;
53+
canvas.width = 1080;
54+
canvas.height = 1080;
5555
const ctx = canvas.getContext('2d');
5656
if (!ctx) return;
5757
@@ -62,9 +62,9 @@
6262
// draw text to canvas "be-clippy.com" rotated 90 degress
6363
if (watermark) {
6464
ctx.save();
65-
ctx.font = "16px sans-serif";
65+
ctx.font = "75px sans-serif";
6666
ctx.fillStyle = getTextColour();
67-
ctx.translate((canvas.width / 2) + 40, (canvas.height / 2) - 10);
67+
ctx.translate((canvas.width / 2) + 190, (canvas.height / 2) - 50);
6868
ctx.rotate(Math.PI / 2);
6969
ctx.fillText("be-clippy.com", 0, 0);
7070
ctx.restore();

0 commit comments

Comments
 (0)