dream output text legibility, invert marching ants

This commit is contained in:
tim h 2022-11-21 18:04:05 -06:00
parent 8e40019770
commit 7e7146eaa1
2 changed files with 6 additions and 5 deletions

View file

@ -173,7 +173,8 @@ button.tool:hover {
} }
.strokeText { .strokeText {
-webkit-text-stroke: 1px #888; -webkit-text-stroke: 1px #000;
font-size: 150%; font-size: 150%;
color: #000; font-weight: 600;
color: #fff;
} }

View file

@ -238,8 +238,8 @@ function imageAcceptReject(x, y, data) {
div.style.position = "absolute"; div.style.position = "absolute";
div.style.left = parseInt(x) + "px"; div.style.left = parseInt(x) + "px";
div.style.top = parseInt(y + data.parameters.height) + "px"; div.style.top = parseInt(y + data.parameters.height) + "px";
div.style.width = "150px"; div.style.width = "200px";
div.style.height = "50px"; div.style.height = "70px";
div.innerHTML = div.innerHTML =
'<button onclick="prevImg(this)">&lt;</button><button onclick="nextImg(this)">&gt;</button><span class="strokeText" id="currentImgIndex"></span><span class="strokeText"> of </span><span class="strokeText" id="totalImgIndex"></span><button onclick="accept(this)">Y</button><button onclick="reject(this)">N</button>'; '<button onclick="prevImg(this)">&lt;</button><button onclick="nextImg(this)">&gt;</button><span class="strokeText" id="currentImgIndex"></span><span class="strokeText"> of </span><span class="strokeText" id="totalImgIndex"></span><button onclick="accept(this)">Y</button><button onclick="reject(this)">N</button>';
document.getElementById("tempDiv").appendChild(div); document.getElementById("tempDiv").appendChild(div);
@ -397,7 +397,7 @@ function march() {
function drawMarchingAnts() { function drawMarchingAnts() {
clearTargetMask(); clearTargetMask();
tgtCtx.strokeStyle = "#333333FF"; //"#55000077"; tgtCtx.strokeStyle = "#FFFFFFFF"; //"#55000077";
tgtCtx.setLineDash([4, 2]); tgtCtx.setLineDash([4, 2]);
tgtCtx.lineDashOffset = -marchOffset; tgtCtx.lineDashOffset = -marchOffset;
tgtCtx.strokeRect(marchCoords.x, marchCoords.y, marchCoords.w, marchCoords.h); tgtCtx.strokeRect(marchCoords.x, marchCoords.y, marchCoords.w, marchCoords.h);