Cosmetic 2D Setup change: Start at Panel 1 instead of 0
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
var pw = parseInt(d.Sf.PW.value);
|
||||
var ph = parseInt(d.Sf.PH.value);
|
||||
//WLEDMM: change name to id
|
||||
let b = `<div id="pnl${i}"><hr class="sml">Panel ${i}<br>
|
||||
let b = `<div id="pnl${i}"><hr class="sml">Panel ${i+1}<br>
|
||||
1<sup>st</sup> LED: <select id="P${i}B" name="P${i}B" oninput="draw()">
|
||||
<option value="0">Top</option>
|
||||
<option value="1">Bottom</option>
|
||||
@@ -334,7 +334,7 @@ Y:<input id="P${i}Y" name="P${i}Y" type="number" min="0" max="1023" value="0" on
|
||||
|
||||
ctx.font = '40px Arial';
|
||||
ctx.fillStyle = "orange";
|
||||
ctx.fillText(p, topLeftX + pw/2*ppL - 10, topLeftY + ph/2*ppL + 10);
|
||||
ctx.fillText(p+1, topLeftX + pw/2*ppL - 10, topLeftY + ph/2*ppL + 10);
|
||||
}
|
||||
gId("MD").innerHTML = "Matrix Dimensions (W*H=LC): " + maxWidth + " x " + maxHeight + " = " + maxWidth * maxHeight;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user