Draw Table for Riga weather day and next day

This commit is contained in:
Guntis Smaukstelis
2025-03-14 15:20:25 +02:00
parent 854037a42b
commit 89fa9224fe
5 changed files with 125 additions and 2 deletions
+2 -1
View File
@@ -18,7 +18,8 @@ export function drawRotatedImage(
img: HTMLImageElement,
x: number,
y: number,
angleInDegrees: number): void {
angleInDegrees: number,
): void {
const angleInRadians = angleInDegrees * (Math.PI / 180);
ctx.translate(x + img.width / 2, y + img.height / 2);
ctx.rotate(angleInRadians);