Glitch Effect Generator
Professional-grade digital distortion tool. Apply RGB shifts, slice displacement, and scanline errors with precise seed control and blend modes.
About
This Glitch Effect Generator is a specialized image processing engine designed to simulate digital signal failure, data corruption, and analog video artifacts. Unlike simple filters that apply a uniform overlay, this tool performs algorithmic manipulation of pixel data via the HTML5 Canvas API.
Accuracy in glitch art relies on controlled chaos. By utilizing a PRNG (Pseudo-Random Number Generator) with a custom seed, this tool allows for deterministic reproducibility - meaning you can recreate the exact same artifact pattern on high-resolution exports. Key techniques include RGB channel separation, scanline displacement (shifting rows of pixels horizontally), and high-frequency noise injection.
Use cases include cyberpunk aesthetic design, datamoshing simulation for UI mockups, and artistic photo manipulation. The engine processes images locally in your browser, ensuring high performance and privacy without server-side compression.
Formulas
The core displacement logic uses a seeded random generator to determine the horizontal shift Δx for a given strip of height h.
For RGB Channel Shifting, the pixel color C at position p is reconstructed by sampling channels from spatially offset coordinates:
The Pseudo-Random Number Generator (LCG) follows the recurrence relation:
Xn+1 = (aXn + c) mod m
Reference Data
| Parameter | Technical Definition | Visual Impact | Typical Range |
|---|---|---|---|
| RGB Shift | offset(r, g, b) along x-axis | Creates chromatic aberration (color fringing). | 2 - 25 px |
| Slice Height | dy (vertical segment size) | Determines thickness of displaced horizontal bands. | 5 - 10 % |
| Jitter | Random deviation ε applied to offset | Adds high-frequency noise/shaking to edges. | 0.0 - 1.0 |
| Scanlines | Periodic intensity modulation | Simulates CRT monitor refresh lines. | 2 - 4 px gap |
| Seed | Initial state S0 for LCG | Controls the random number sequence. Same seed = Same glitch. | Z (Integer) |
| Blend Mode | f(source, dest) | How the glitch layer mixes with the original signal. | Multiply, Overlay, Screen |