Skip to content
プロジェクト

概要

WebGLを利用した動画のASCII変換用Reactコンポーネント

Web・アプリ開発

この数値の測り方

計測したスター増加

24時間
0
7日間
-1
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

video2ascii

WebGL-powered React Component for video to ASCII conversion.

gta.jpeg

Installation

npm install video2ascii

Usage

import Video2Ascii from "video2ascii";

<Video2Ascii
  src="/video.mp4"
  numColumns={120}
  colored={true}
  brightness={1.0}
  audioEffect={50}
  enableMouse={true}
  enableRipple={true}
  charset="detailed"
  isPlaying={true}
  autoPlay={true}
/>;

Props

Prop Type Default Description
src string required Video URL
numColumns number - Number of columns (controls size)
colored boolean true Use video colors vs green terminal
brightness number 1.0 Brightness multiplier (0-2, 1.0 = normal)
blend number 0 0 = ASCII, 100 = original video
highlight number 0 Background behind characters (0-100)
charset CharsetKey "standard" Character set
enableMouse boolean true Cursor glow effect
trailLength number 24 Mouse trail length
enableRipple boolean false Click ripple effect
rippleSpeed number 40 Ripple expansion speed
audioEffect number 0 How much audio affects brightness (0-100)
audioRange number 50 How dramatic audio brightness changes are (0-100)
isPlaying boolean true Whether video is playing
autoPlay boolean true Auto-play on load
enableSpacebarToggle boolean false Enable spacebar to toggle play/pause
showStats boolean false Show FPS overlay
className string "" CSS class name

Character Sets

import { ASCII_CHARSETS } from "video2ascii";
  • standard — @%#*+=-:.
  • detailed — Full gradient with 70 characters
  • blocks — █▓▒░
  • minimal — @#.
  • binary — 10
  • dots — ●◉○◌
  • arrows — ↑↗→↘↓↙←↖
  • emoji — Various emoji

関連プロジェクトを探す

読み込み中…