Posterize Limited Palette
A landscape reduced to 2 to 8 tonal levels per channel with an SVG filter, like a screen print.
AI prompt
Screen printed poster of a mountain landscape at sunset reduced to four flat colours, deep navy sky, a warm orange band near the horizon, cream sun and charcoal mountains, crisp hard edges between colour areas with no gradients, a slight ink texture and tiny misregistration, off-white paper border, bold graphic and nostalgic. Variants: an eight colour version with more subtle tones, and a two colour version in black and orange only. Negative: smooth gradients, photo noise, text, logos, watermark. Reduced motion: static print.About this pattern
Definition
Posterising reduces the number of tones in an image to a handful, so smooth gradients become flat bands of colour. It is the look of screen-printed posters, where each ink is one flat layer, and it forces a design to rely on shape and contrast.
When to use it
- Fewer levels give bolder, more graphic results; more levels keep realism.
- Two to four levels suit logos and posters; five to eight keep photographic detail.
- Posterise after adjusting contrast: a flat image posterises into mush.
- Pick palette colours by hand for the best print look.
What the controls do
- A Levels slider from 2 to 8 and a live colour count.
Motion & timing
- Updates follow the slider.
- Reduced motion: nothing animates.
Tips & variations
- Check that important edges survive the reduction.
- For real print work, separate each flat colour into its own layer.
Code of this live preview
<svg width="0" height="0" aria-hidden="true" focusable="false"><defs><filter id="pzf" color-interpolation-filters="sRGB"><feComponentTransfer><feFuncR id="fr" type="discrete" tableValues="0 .33 .66 1"/><feFuncG id="fg" type="discrete" tableValues="0 .33 .66 1"/><feFuncB id="fb" type="discrete" tableValues="0 .33 .66 1"/></feComponentTransfer></filter></defs></svg><div class="bx"><div class="sc" id="sc"><i class="sk"></i><i class="sn"></i><i class="mt"></i><i class="mt2"></i><i class="gr"></i></div><label class="rw">Levels <b id="lv">4</b><input id="ls" type="range" min="2" max="8" value="4"></label><p class="out" id="out"></p></div>:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sc{height:128px;border-radius:12px;position:relative;overflow:hidden;filter:url(#pzf)}.sc i{position:absolute;display:block}.sk{inset:0;background:linear-gradient(#1c2a5a,#d96b4b 70%,#f6c36a)}.sn{left:60%;bottom:30%;width:34px;height:34px;margin-left:-17px;border-radius:50%;background:#fff1c2;box-shadow:0 0 18px 6px rgba(255,230,160,.7)}.mt{left:-6%;right:30%;bottom:18%;height:44%;background:#6b4a5a;clip-path:polygon(0 100%,0 70%,35% 10%,70% 60%,100% 100%)}.mt2{left:30%;right:-6%;bottom:18%;height:34%;background:#4a3550;clip-path:polygon(0 100%,25% 20%,60% 70%,85% 10%,100% 60%,100% 100%)}.gr{left:0;right:0;bottom:0;height:20%;background:linear-gradient(#3a2e45,#1e1830)}.out{font-size:12px;color:var(--muted)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const ls=document.getElementById('ls'),F=['fr','fg','fb'].map(i=>document.getElementById(i));
function up(){const n=+ls.value,v=Array.from({length:n},(_,i)=>(i/(n-1)).toFixed(3)).join(' ');F.forEach(f=>f.setAttribute('tableValues',v));document.getElementById('lv').textContent=n;document.getElementById('out').textContent=n+' levels per channel: up to '+Math.pow(n,3)+' possible colours, '+(n<=3?'very graphic.':n<=5?'bold with some tone.':'close to the original.');}
ls.addEventListener('input',up);up();One complete HTML file. Save it and open it in a browser.
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Posterize Limited Palette — demo</title>
<style>
:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
html,body{height:100%}body{background:var(--bg);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.stage{min-height:100%;display:grid;place-items:center;padding:24px}button,input,select,textarea{font-family:inherit}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sc{height:128px;border-radius:12px;position:relative;overflow:hidden;filter:url(#pzf)}.sc i{position:absolute;display:block}.sk{inset:0;background:linear-gradient(#1c2a5a,#d96b4b 70%,#f6c36a)}.sn{left:60%;bottom:30%;width:34px;height:34px;margin-left:-17px;border-radius:50%;background:#fff1c2;box-shadow:0 0 18px 6px rgba(255,230,160,.7)}.mt{left:-6%;right:30%;bottom:18%;height:44%;background:#6b4a5a;clip-path:polygon(0 100%,0 70%,35% 10%,70% 60%,100% 100%)}.mt2{left:30%;right:-6%;bottom:18%;height:34%;background:#4a3550;clip-path:polygon(0 100%,25% 20%,60% 70%,85% 10%,100% 60%,100% 100%)}.gr{left:0;right:0;bottom:0;height:20%;background:linear-gradient(#3a2e45,#1e1830)}.out{font-size:12px;color:var(--muted)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<svg width="0" height="0" aria-hidden="true" focusable="false"><defs><filter id="pzf" color-interpolation-filters="sRGB"><feComponentTransfer><feFuncR id="fr" type="discrete" tableValues="0 .33 .66 1"/><feFuncG id="fg" type="discrete" tableValues="0 .33 .66 1"/><feFuncB id="fb" type="discrete" tableValues="0 .33 .66 1"/></feComponentTransfer></filter></defs></svg><div class="bx"><div class="sc" id="sc"><i class="sk"></i><i class="sn"></i><i class="mt"></i><i class="mt2"></i><i class="gr"></i></div><label class="rw">Levels <b id="lv">4</b><input id="ls" type="range" min="2" max="8" value="4"></label><p class="out" id="out"></p></div>
</div>
<script>
const ls=document.getElementById('ls'),F=['fr','fg','fb'].map(i=>document.getElementById(i));
function up(){const n=+ls.value,v=Array.from({length:n},(_,i)=>(i/(n-1)).toFixed(3)).join(' ');F.forEach(f=>f.setAttribute('tableValues',v));document.getElementById('lv').textContent=n;document.getElementById('out').textContent=n+' levels per channel: up to '+Math.pow(n,3)+' possible colours, '+(n<=3?'very graphic.':n<=5?'bold with some tone.':'close to the original.');}
ls.addEventListener('input',up);up();
</script>
</body></html>