A modern, interactive ASCII art generator with real-time customization and a sleek interface.
Try it out on CodePen: BITBLOCK SEXY ASCII
- Interactive 3D Space: Dynamic grid background that responds to mouse movement and drag interactions
- Multiple Input Methods:
- Drag & Drop image files
- File selection dialog
- Real-time webcam conversion
- Real-time Customization:
- Image Processing:
- Width adjustment
- Brightness control
- Contrast enhancement
- Multiple dithering options
- ASCII Style:
- Preset and custom character sets
- Font size control (fixed at 9px for optimal display)
- Text color customization
- Various color modes (Normal, Inverted, Grayscale)
- Advanced Options:
- Toggle-based Edge detection
- Toggle-based Threshold adjustment
- Image Processing:
- Clone the repository:
git clone https://github.com/OmPreetham/bitblock.git
cd bitblock
- Start a local server:
node server.js
- Open
http://localhost:3000
in a modern web browser- No additional dependencies required
- Works best in Chrome, Firefox, or Safari
-
Converting Images:
- Drag and drop an image onto the window
- Click "SELECT FILE" to choose an image
- Click "WEBCAM" for real-time conversion
-
Using Webcam:
- Click the "WEBCAM" button with the pulsing green indicator
- Grant camera permissions when prompted
- Webcam feed will automatically convert to ASCII
- Switch to image mode at any time by selecting or dropping an image
-
Customizing Output:
- Click "CUSTOMIZATION" in the top right to access settings
- Adjust parameters in real-time
- Toggle advanced features like edge detection and threshold
-
Saving Your Work:
- Click "COPY TEXT" to copy ASCII art to clipboard
- Click "SAVE TXT" to download as a text file
- Width: Control the number of characters (20-200)
- Brightness: Adjust image brightness (0-200%)
- Contrast: Fine-tune contrast levels (0-200%)
- Dithering: Choose between None, Floyd-Steinberg, Atkinson, or Ordered
- Character Sets:
- Standard:
@%#*+=-:.
- Blocks:
█▓▒░
- Minimal:
#.
- Letters:
MWBHKDPO.
- Custom: Define your own character set
- Standard:
- Edge Detection: Enhance image edges (0-100)
- Threshold: Control black/white cutoff (0-255)
- Chrome 80+
- Firefox 75+
- Safari 13+
- Edge 80+
MIT License - This code is free to use, modify, and distribute.