1.1.0 • Published 10 months ago
monscii v1.1.0
Monscii
Monscii lets media speak. lightweight library that converts videos and images into ASCII in the web.
Why?, to place cool art in the web. Inspired by midjourney's homepage.
Installation
npm install monscii
or just include the script from unpkg
Usage
const monscii = new Monscii();
// For videos
monscii.convertVideoToASCII("video.mp4", {
width: 250,
targetElement: document.getElementById("art"),
sensitivity: 0.5,
color: true,
hero: "Dream in color - Regina Belle",
charSet: "%#*+=-:.
});
// For images
monscii.convertImageToASCII("image.jpg", {
width: 100,
color: false
});
Options
width
: Output width (default: 100)targetElement
: DOM element to append output (default: document.body)sensitivity
: Brightness sensitivity (default: 1.0)color
: Enable color output (default: true). Disable for much faster black and white rendering.hero
: Overlay text (optional)fps
: Frames per second for video (default: 30)playbackSpeed
: Video playback speed (default: 1)charSet
: Character set (Not required)
1.1.0
10 months ago
1.0.20
10 months ago
1.0.19
10 months ago
1.0.18
10 months ago
1.0.17
10 months ago
1.0.16
10 months ago
1.0.15
10 months ago
1.0.14
10 months ago
1.0.13
10 months ago
1.0.12
10 months ago
1.0.11
10 months ago
1.0.10
10 months ago
1.0.7
10 months ago
1.0.6
10 months ago
1.0.5
10 months ago
1.0.4
10 months ago
1.0.3
10 months ago
1.0.2
10 months ago
1.0.1
10 months ago
1.0.0
10 months ago