ASCII and dither shader

Example image of the style ASCII and dither shader
Preview built in HTML and CSS in this style

ASCII shader · Dither shader · ASCII effect · Efecto ASCII · Scena 3D in caratteri · Dithered WebGL · Retino animato

A 3D scene or video rendered live as text characters or dots, like a terminal screen in motion. Light areas become dense letters or big dots, dark areas empty space, and everything spins or ripples live in the browser.

Era
2020 – today
Origin
Creative coding sul web
Use
Niche
Domain
Web / UIMotion
Mood
futuristicrawdark
Explore

Live demo

View code
<pre></pre><p class="lb">caffè_velò://render --ascii</p>
<script>
const p=document.querySelector('pre'),ch=' .:-=+*#%@',W=72,H=30;let A=1,B=0,T=0;const red=!matchMedia('(prefers-reduced-motion: no-preference)').matches;
const fr=()=>{const b=Array(W*H).fill(' '),z=Array(W*H).fill(0);for(let j=0;j<6.28;j+=.07)for(let i=0;i<6.28;i+=.02){const c=Math.sin(i),d=Math.cos(j),e=Math.sin(A),f=Math.sin(j),g=Math.cos(A),h=d+2,D=1/(c*h*e+f*g+5),l=Math.cos(i),m=Math.cos(B),n=Math.sin(B),t=c*h*g-f*e,x=0|(W/2+40*D*(l*h*m-t*n)),y=0|(H/2+18*D*(l*h*n+t*m)),o=x+W*y,N=0|(8*((f*e-c*d*g)*m-c*d*e-f*g-l*d*n));if(y<H&&y>0&&x>0&&x<W&&D>z[o]){z[o]=D;b[o]=ch[Math.max(0,Math.min(9,N+1))]}}
let s='';for(let k=0;k<W*H;k++)s+=k%W?b[k]:'\n'+b[k];p.textContent=s;if(!red){T+=.03;A=1+.5*Math.sin(T);B+=.03;requestAnimationFrame(fr)}};fr();
</script>
body{background:#0A0A0A;color:#33FF66;font-family:'JetBrains Mono',monospace;display:grid;place-items:center;overflow:hidden}
pre{margin:0;font-size:9.5px;line-height:1.05;text-shadow:0 0 6px #33FF6699}
.lb{position:fixed;left:14px;bottom:8px;margin:0;font-size:11px;color:#FFB000}

Characteristics

  • Image built from characters like . : - = + * # @
  • Character density following the scene's light
  • Continuous motion: spinning objects or waves
  • One colour on dark, often green or amber
  • Halftone-dot variant with variable dot size

Palette

Click a swatch to copy it

Typography

Headings · JetBrains Mono ASCII and dither shader

Body · JetBrains Mono A 3D scene or video rendered live as text characters or dots, like a terminal screen in motion. Light areas become dense letters or big dots, dark areas empty space, and everything spins or ripples live in the browser.

Motion

Easing
lineare, guidata dal tempo
Typical duration
continua, 30–60 fotogrammi al secondo
Techniques
AsciiEffect di Three.js, fragment shader con tabella di caratteri, canvas 2D con luminanza per cella, dithering ordinato Bayer

Accessibility (reduced motion)

The scene freezes on a single character frame.

Prompt for your agent

Copy and paste into your prompt to have an agent or image generator reproduce this style.

For web pages and UI

Design the web page or interface in this style: ASCII and dither shader (ASCII shader, Dither shader).
A 3D scene or video rendered live as text characters or dots, like a terminal screen in motion. Light areas become dense letters or big dots, dark areas empty space, and everything spins or ripples live in the browser.
Characteristics: Image built from characters like . : - = + * # @, Character density following the scene's light, Continuous motion: spinning objects or waves, One colour on dark, often green or amber, Halftone-dot variant with variable dot size.
Palette: #0A0A0A, #33FF66, #FFB000, #E6E6E6.
Typography: headings in JetBrains Mono, body text in JetBrains Mono (Google Fonts or equivalents).
Mood: futuristic, raw, dark.
Motion: easing lineare, guidata dal tempo, typical duration continua, 30–60 fotogrammi al secondo; techniques: AsciiEffect di Three.js, fragment shader con tabella di caratteri, canvas 2D con luminanza per cella, dithering ordinato Bayer.
With prefers-reduced-motion: The scene freezes on a single character frame.
References: Il «donut» in C di Andy Sloane (2006), AsciiEffect di Three.js, Siti sperimentali su Awwwards.

Relations

Derives from: ASCII and ANSI artASCII and ANSI artSimilar to: WebGL 3D SceneWebGL 3D SceneSimilar to: Terminal UITerminal UISimilar to: HalftoneHalftoneContrasts with: GlassmorphismGlassmorphismASCII and dither shader
Derives fromSimilar toContrasts withSee in the graph →

References

  • Il «donut» in C di Andy Sloane (2006)
  • AsciiEffect di Three.js
  • Siti sperimentali su Awwwards