mirror of
https://codeberg.org/armin/noiz.git
synced 2026-09-01 05:50:52 +02:00
Increase VU meter LED gap from 1px to 2px
This commit is contained in:
parent
56faa28f6b
commit
a7f62a7bd8
1 changed files with 1 additions and 1 deletions
|
|
@ -550,7 +550,7 @@ function drawSpectrum() {
|
||||||
const gap = 4;
|
const gap = 4;
|
||||||
const labelW = 12;
|
const labelW = 12;
|
||||||
const segCount = 32;
|
const segCount = 32;
|
||||||
const segG = 1;
|
const segG = 2;
|
||||||
const segW = Math.floor((vw - labelW - (segCount - 1) * segG) / segCount);
|
const segW = Math.floor((vw - labelW - (segCount - 1) * segG) / segCount);
|
||||||
const totalSegW = segCount * segW + (segCount - 1) * segG;
|
const totalSegW = segCount * segW + (segCount - 1) * segG;
|
||||||
const segLeft = labelW + Math.floor(((vw - labelW) - totalSegW) / 2);
|
const segLeft = labelW + Math.floor(((vw - labelW) - totalSegW) / 2);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue