Skip to content

Commit

Permalink
increase size of logo
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Nov 24, 2023
1 parent 7677cf8 commit afe95d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/screentock.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ AFRAME.registerComponent('screentock', {
const logoSVG = document.querySelector('#aframeInspector #logoImg svg');

if (logoImg) {
ctx.drawImage(logoImg, 0, 0, 135, 43, 40, 30, 135, 43);
ctx.drawImage(logoImg, 0, 0, 135, 43, 40, 30, 270, 86);
} else if (logoSVG) {
const image = new Image();
image.src = `data:image/svg+xml;base64,${window.btoa(logoSVG.outerHTML)}`;
await new Promise((resolve) => {
image.onload = resolve;
});

ctx.drawImage(image, 0, 0, 135, 23, 40, 40, 135, 23);
ctx.drawImage(image, 0, 0, 135, 23, 40, 40, 270, 86);
}
}

Expand Down

0 comments on commit afe95d8

Please sign in to comment.