-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate-icon.html
More file actions
30 lines (27 loc) · 943 Bytes
/
create-icon.html
File metadata and controls
30 lines (27 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html>
<head>
<title>CodeChronicle Icon Generator</title>
</head>
<body>
<canvas id="canvas" width="128" height="128"></canvas>
<script>
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
// Background gradient
const gradient = ctx.createLinearGradient(0, 0, 128, 128);
gradient.addColorStop(0, '#4A90E2');
gradient.addColorStop(1, '#357ABD');
ctx.fillStyle = gradient;
ctx.fillRect(0, 0, 128, 128);
// Draw scroll emoji style
ctx.fillStyle = '#FFFFFF';
ctx.font = 'bold 80px Arial';
ctx.textAlign = 'center';
ctx.textBaseline = 'middle';
ctx.fillText('📜', 64, 64);
// Instructions
document.body.innerHTML += '<p>Right-click the canvas above and "Save image as..." to save as icon.png</p>';
</script>
</body>
</html>