asciify-engine 1.0.37 → 1.0.38
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 +17 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2014,6 +2014,22 @@ function _parseColor(c) {
|
|
|
2014
2014
|
if (rgb) return { r: +rgb[1], g: +rgb[2], b: +rgb[3] };
|
|
2015
2015
|
return null;
|
|
2016
2016
|
}
|
|
2017
|
+
var BACKGROUND_TYPES = [
|
|
2018
|
+
"wave",
|
|
2019
|
+
"rain",
|
|
2020
|
+
"stars",
|
|
2021
|
+
"pulse",
|
|
2022
|
+
"noise",
|
|
2023
|
+
"grid",
|
|
2024
|
+
"aurora",
|
|
2025
|
+
"silk",
|
|
2026
|
+
"void",
|
|
2027
|
+
"morph",
|
|
2028
|
+
"fire",
|
|
2029
|
+
"dna",
|
|
2030
|
+
"terrain",
|
|
2031
|
+
"circuit"
|
|
2032
|
+
];
|
|
2017
2033
|
function asciiBackground(target, options = {}) {
|
|
2018
2034
|
const {
|
|
2019
2035
|
type = "wave",
|
|
@@ -2427,6 +2443,7 @@ async function asciifyWebcam(canvas, {
|
|
|
2427
2443
|
}
|
|
2428
2444
|
|
|
2429
2445
|
exports.ART_STYLE_PRESETS = ART_STYLE_PRESETS;
|
|
2446
|
+
exports.BACKGROUND_TYPES = BACKGROUND_TYPES;
|
|
2430
2447
|
exports.CHARSETS = CHARSETS;
|
|
2431
2448
|
exports.DEFAULT_OPTIONS = DEFAULT_OPTIONS;
|
|
2432
2449
|
exports.HOVER_PRESETS = HOVER_PRESETS;
|