Skip to content

Commit 289f08f

Browse files
committed
added unified scaling to all logos
fixed kali-1 logo
1 parent de2dffb commit 289f08f

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

images/kali-1.svg

Lines changed: 20 additions & 2 deletions
Loading

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ window.onload = function () {
242242
img.onload = function () {
243243
drawBlackMask();
244244

245-
let img_width = img.width * options.ui_logo_scale;
246-
let img_height = img.height * options.ui_logo_scale;
245+
let img_width = (c.height/2) * (img.width/img.height) * options.ui_logo_scale;
246+
let img_height = (c.height/2) * options.ui_logo_scale;
247247

248248
mask.globalCompositeOperation = 'destination-out';
249249
mask.drawImage(img, c.width / 2 - img_width / 2 + options.ui_logo_positionX, c.height / 2 - img_height / 2 + options.ui_logo_positionY, img_width, img_height);

0 commit comments

Comments
 (0)