asciify-engine 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +28 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +28 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -583,7 +583,7 @@ function renderWaveBackground(ctx, width, height, time, mousePos = { x: 0.5, y:
|
|
|
583
583
|
} else if (baseColor) {
|
|
584
584
|
ctx.fillStyle = baseColor.replace("{a}", String(alpha));
|
|
585
585
|
} else if (lightMode) {
|
|
586
|
-
ctx.fillStyle = `rgba(
|
|
586
|
+
ctx.fillStyle = `rgba(55,55,55,${alpha * 7})`;
|
|
587
587
|
} else {
|
|
588
588
|
ctx.fillStyle = `rgba(255,255,255,${alpha})`;
|
|
589
589
|
}
|
|
@@ -1154,9 +1154,9 @@ function renderRainBackground(ctx, width, height, time, options = {}) {
|
|
|
1154
1154
|
ctx.textBaseline = "top";
|
|
1155
1155
|
let br = 255, bg = 255, bb = 255;
|
|
1156
1156
|
if (lightMode) {
|
|
1157
|
-
br =
|
|
1158
|
-
bg =
|
|
1159
|
-
bb =
|
|
1157
|
+
br = 55;
|
|
1158
|
+
bg = 55;
|
|
1159
|
+
bb = 55;
|
|
1160
1160
|
}
|
|
1161
1161
|
if (color) {
|
|
1162
1162
|
const p = parseColor(color);
|
|
@@ -1218,9 +1218,9 @@ function renderStarsBackground(ctx, width, height, time, mousePos = { x: 0.5, y:
|
|
|
1218
1218
|
const maxR = Math.sqrt(width * width + height * height) * 0.65;
|
|
1219
1219
|
let br = 255, bg = 255, bb = 255;
|
|
1220
1220
|
if (lightMode) {
|
|
1221
|
-
br =
|
|
1222
|
-
bg =
|
|
1223
|
-
bb =
|
|
1221
|
+
br = 55;
|
|
1222
|
+
bg = 55;
|
|
1223
|
+
bb = 55;
|
|
1224
1224
|
}
|
|
1225
1225
|
if (color) {
|
|
1226
1226
|
const p = parseColor(color);
|
|
@@ -1280,9 +1280,9 @@ function renderPulseBackground(ctx, width, height, time, mousePos = { x: 0.5, y:
|
|
|
1280
1280
|
const maxDist = Math.sqrt(cx * cx + cy * cy) * 1.6 + Math.sqrt(width * width + height * height) * 0.2;
|
|
1281
1281
|
let br = 255, bg = 255, bb = 255;
|
|
1282
1282
|
if (lightMode) {
|
|
1283
|
-
br =
|
|
1284
|
-
bg =
|
|
1285
|
-
bb =
|
|
1283
|
+
br = 55;
|
|
1284
|
+
bg = 55;
|
|
1285
|
+
bb = 55;
|
|
1286
1286
|
}
|
|
1287
1287
|
if (color) {
|
|
1288
1288
|
const p = parseColor(color);
|
|
@@ -1357,9 +1357,9 @@ function renderNoiseBackground(ctx, width, height, time, mousePos = { x: 0.5, y:
|
|
|
1357
1357
|
ctx.textBaseline = "top";
|
|
1358
1358
|
let br = 255, bgc = 255, bb = 255;
|
|
1359
1359
|
if (lightMode) {
|
|
1360
|
-
br =
|
|
1361
|
-
bgc =
|
|
1362
|
-
bb =
|
|
1360
|
+
br = 55;
|
|
1361
|
+
bgc = 55;
|
|
1362
|
+
bb = 55;
|
|
1363
1363
|
}
|
|
1364
1364
|
if (color) {
|
|
1365
1365
|
const p = parseColor(color);
|
|
@@ -1436,9 +1436,9 @@ function renderGridBackground(ctx, width, height, time, mousePos = { x: 0.5, y:
|
|
|
1436
1436
|
ctx.textBaseline = "top";
|
|
1437
1437
|
let br = 255, bgv = 255, bb = 255;
|
|
1438
1438
|
if (lightMode) {
|
|
1439
|
-
br =
|
|
1440
|
-
bgv =
|
|
1441
|
-
bb =
|
|
1439
|
+
br = 55;
|
|
1440
|
+
bgv = 55;
|
|
1441
|
+
bb = 55;
|
|
1442
1442
|
}
|
|
1443
1443
|
if (color) {
|
|
1444
1444
|
const p = parseColor(color);
|
|
@@ -1508,9 +1508,9 @@ function renderAuroraBackground(ctx, width, height, time, mousePos = { x: 0.5, y
|
|
|
1508
1508
|
ctx.textBaseline = "top";
|
|
1509
1509
|
let cr = 255, cg = 255, cb = 255;
|
|
1510
1510
|
if (lightMode) {
|
|
1511
|
-
cr =
|
|
1512
|
-
cg =
|
|
1513
|
-
cb =
|
|
1511
|
+
cr = 55;
|
|
1512
|
+
cg = 55;
|
|
1513
|
+
cb = 55;
|
|
1514
1514
|
}
|
|
1515
1515
|
if (color) {
|
|
1516
1516
|
const p = parseColor(color);
|
|
@@ -1593,9 +1593,9 @@ function renderSilkBackground(ctx, width, height, time, options = {}) {
|
|
|
1593
1593
|
ctx.textBaseline = "top";
|
|
1594
1594
|
let cr = 255, cg = 255, cb = 255;
|
|
1595
1595
|
if (lightMode) {
|
|
1596
|
-
cr =
|
|
1597
|
-
cg =
|
|
1598
|
-
cb =
|
|
1596
|
+
cr = 55;
|
|
1597
|
+
cg = 55;
|
|
1598
|
+
cb = 55;
|
|
1599
1599
|
}
|
|
1600
1600
|
if (color) {
|
|
1601
1601
|
const p = parseColor(color);
|
|
@@ -1670,9 +1670,9 @@ function renderVoidBackground(ctx, width, height, time, mousePos = { x: 0.5, y:
|
|
|
1670
1670
|
ctx.textBaseline = "top";
|
|
1671
1671
|
let cr = 255, cg = 255, cb = 255;
|
|
1672
1672
|
if (lightMode) {
|
|
1673
|
-
cr =
|
|
1674
|
-
cg =
|
|
1675
|
-
cb =
|
|
1673
|
+
cr = 55;
|
|
1674
|
+
cg = 55;
|
|
1675
|
+
cb = 55;
|
|
1676
1676
|
}
|
|
1677
1677
|
if (color) {
|
|
1678
1678
|
const p = parseColor(color);
|
|
@@ -1742,9 +1742,9 @@ function renderMorphBackground(ctx, width, height, time, options = {}) {
|
|
|
1742
1742
|
ctx.textBaseline = "top";
|
|
1743
1743
|
let cr = 255, cg = 255, cb = 255;
|
|
1744
1744
|
if (lightMode) {
|
|
1745
|
-
cr =
|
|
1746
|
-
cg =
|
|
1747
|
-
cb =
|
|
1745
|
+
cr = 55;
|
|
1746
|
+
cg = 55;
|
|
1747
|
+
cb = 55;
|
|
1748
1748
|
}
|
|
1749
1749
|
if (color) {
|
|
1750
1750
|
const p = parseColor(color);
|