Stone Surfaces: Marble & Concrete
Marble, concrete, terrazzo and slate built from noise and chips, with a veining slider.
AI prompt
Overhead photograph of a polished white Carrara marble slab with fine grey veins wandering diagonally across the surface, soft window light reflecting faintly on the polish, a few cooler blue-grey veins, clean edges, neutral background, shallow depth of field, calm and luxurious. Variants: raw grey concrete with faint pores, terrazzo with pastel and charcoal chips on cream, dark slate with fine layered lines. Negative: cartoon pattern, repeating tile seams, text, cracks, fake gold veins. Reduced motion: static image.About this pattern
Definition
Stone is read through its pattern: marble has long thin veins, concrete has faint speckle and pores, terrazzo has scattered colourful chips and slate has fine directional layers. A noise filter narrowed to a thin band draws veins; random small shapes draw chips.
When to use it
- For veins, take noise and keep only a narrow band of its values; the band edges become thin, wandering lines.
- Terrazzo is random chips of a few colours on a light base; vary size and corner rounding.
- Name the stone and the finish in prompts: polished white marble, raw board-marked concrete.
What the controls do
- Four stones and a Veining slider for pattern strength.
Motion & timing
- Updates are instant; the pattern is static.
- Reduced motion: nothing to change.
Tips & variations
- Keep vein contrast gentle so text on a surface stays readable.
- Generate chips with a fixed seed so the pattern does not jump between loads.
Code of this live preview
<svg width="0" height="0" aria-hidden="true" focusable="false"><filter id="vn" x="0" y="0" width="100%" height="100%"><feTurbulence id="tb" type="fractalNoise" baseFrequency=".009 .022" numOctaves="3" seed="3"/><feColorMatrix id="cm" values="0 0 0 0 .3 0 0 0 0 .32 0 0 0 0 .38 1 0 0 0 0"/><feComponentTransfer><feFuncA id="fa" type="table" tableValues="0 0 0 0 0 .9 1 .9 0 0 0 0"/></feComponentTransfer></filter></svg><div class="bx"><div class="st" id="st"><div class="vn" id="vn"></div><div class="ch" id="ch"></div></div><div class="pre" id="pre" role="group" aria-label="Stone"><button data-p="0" aria-pressed="true">Marble</button><button data-p="1" aria-pressed="false">Concrete</button><button data-p="2" aria-pressed="false">Terrazzo</button><button data-p="3" aria-pressed="false">Slate</button></div><label class="rw">Veining <b id="vv">80%</b><input id="vi" type="range" min="10" max="100" value="80"></label></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}
.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}
.st{height:132px;border-radius:12px;position:relative;overflow:hidden;background:var(--b);box-shadow:0 6px 16px rgba(0,0,0,.18),inset 0 0 0 1px rgba(0,0,0,.08)}
.vn{position:absolute;inset:0;filter:url(#vn);opacity:var(--o)}.ch{position:absolute;inset:0}.ch i{position:absolute;display:block}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const S=[['#f4f3f0','.009 .022','0 0 0 0 .3 0 0 0 0 .32 0 0 0 0 .38 1 0 0 0 0','0 0 0 0 0 0 0 0 0 0 .5 1 .5 0 0 0 0 0 0 0 0 0 0 0',0],['#b9b8b4','.5','0 0 0 0 .25 0 0 0 0 .25 0 0 0 0 .25 1 0 0 0 0','0 .05 .15 .3 .45 .3 .15 .05 0 0 0 0',0],['#ece6da','.02','0 0 0 0 .6 0 0 0 0 .6 0 0 0 0 .6 1 0 0 0 0','0 0 0 0 0 0 0 0 0 0 0 0',1],['#34373c','.02 .3','0 0 0 0 .85 0 0 0 0 .87 0 0 0 0 .9 1 0 0 0 0','0 0 0 0 .05 .3 .1 0 0 0 0 0',0]],
st=document.getElementById('st'),vn=document.getElementById('vn'),ch=document.getElementById('ch'),vi=document.getElementById('vi'),bs=[...document.querySelectorAll('#pre button')];let p=0;
let sd=7;const rnd=()=>(sd=(sd*16807)%2147483647)/2147483647;const CC=['#c9807a','#7d9fb5','#d6b36a','#8fae8a','#2f3035','#b9a9c9'];
function chips(){ch.innerHTML='';sd=7;for(let i=0;i<34;i++){const e=document.createElement('i'),w=6+rnd()*18;e.style.cssText='left:'+(rnd()*96)+'%;top:'+(rnd()*92)+'%;width:'+w+'px;height:'+(w*(.5+rnd()*.5))+'px;background:'+CC[Math.floor(rnd()*CC.length)]+';border-radius:'+(30+rnd()*50)+'% '+(30+rnd()*50)+'% '+(30+rnd()*50)+'% '+(30+rnd()*50)+'%;transform:rotate('+Math.floor(rnd()*180)+'deg)';ch.appendChild(e);}}
function up(){const s=S[p];st.style.setProperty('--b',s[0]);document.getElementById('tb').setAttribute('baseFrequency',s[1]);document.getElementById('cm').setAttribute('values',s[2]);document.getElementById('fa').setAttribute('tableValues',s[3]);vn.style.display=s[3].replace(/[0 ]/g,'')?'':'none';ch.style.display=s[4]?'':'none';
st.style.setProperty('--o',vi.value/100);document.getElementById('vv').textContent=vi.value+'%';bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
chips();bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));vi.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>Stone Surfaces: Marble & Concrete — 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}}
.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}
.st{height:132px;border-radius:12px;position:relative;overflow:hidden;background:var(--b);box-shadow:0 6px 16px rgba(0,0,0,.18),inset 0 0 0 1px rgba(0,0,0,.08)}
.vn{position:absolute;inset:0;filter:url(#vn);opacity:var(--o)}.ch{position:absolute;inset:0}.ch i{position:absolute;display:block}
@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"><filter id="vn" x="0" y="0" width="100%" height="100%"><feTurbulence id="tb" type="fractalNoise" baseFrequency=".009 .022" numOctaves="3" seed="3"/><feColorMatrix id="cm" values="0 0 0 0 .3 0 0 0 0 .32 0 0 0 0 .38 1 0 0 0 0"/><feComponentTransfer><feFuncA id="fa" type="table" tableValues="0 0 0 0 0 .9 1 .9 0 0 0 0"/></feComponentTransfer></filter></svg><div class="bx"><div class="st" id="st"><div class="vn" id="vn"></div><div class="ch" id="ch"></div></div><div class="pre" id="pre" role="group" aria-label="Stone"><button data-p="0" aria-pressed="true">Marble</button><button data-p="1" aria-pressed="false">Concrete</button><button data-p="2" aria-pressed="false">Terrazzo</button><button data-p="3" aria-pressed="false">Slate</button></div><label class="rw">Veining <b id="vv">80%</b><input id="vi" type="range" min="10" max="100" value="80"></label></div>
</div>
<script>
const S=[['#f4f3f0','.009 .022','0 0 0 0 .3 0 0 0 0 .32 0 0 0 0 .38 1 0 0 0 0','0 0 0 0 0 0 0 0 0 0 .5 1 .5 0 0 0 0 0 0 0 0 0 0 0',0],['#b9b8b4','.5','0 0 0 0 .25 0 0 0 0 .25 0 0 0 0 .25 1 0 0 0 0','0 .05 .15 .3 .45 .3 .15 .05 0 0 0 0',0],['#ece6da','.02','0 0 0 0 .6 0 0 0 0 .6 0 0 0 0 .6 1 0 0 0 0','0 0 0 0 0 0 0 0 0 0 0 0',1],['#34373c','.02 .3','0 0 0 0 .85 0 0 0 0 .87 0 0 0 0 .9 1 0 0 0 0','0 0 0 0 .05 .3 .1 0 0 0 0 0',0]],
st=document.getElementById('st'),vn=document.getElementById('vn'),ch=document.getElementById('ch'),vi=document.getElementById('vi'),bs=[...document.querySelectorAll('#pre button')];let p=0;
let sd=7;const rnd=()=>(sd=(sd*16807)%2147483647)/2147483647;const CC=['#c9807a','#7d9fb5','#d6b36a','#8fae8a','#2f3035','#b9a9c9'];
function chips(){ch.innerHTML='';sd=7;for(let i=0;i<34;i++){const e=document.createElement('i'),w=6+rnd()*18;e.style.cssText='left:'+(rnd()*96)+'%;top:'+(rnd()*92)+'%;width:'+w+'px;height:'+(w*(.5+rnd()*.5))+'px;background:'+CC[Math.floor(rnd()*CC.length)]+';border-radius:'+(30+rnd()*50)+'% '+(30+rnd()*50)+'% '+(30+rnd()*50)+'% '+(30+rnd()*50)+'%;transform:rotate('+Math.floor(rnd()*180)+'deg)';ch.appendChild(e);}}
function up(){const s=S[p];st.style.setProperty('--b',s[0]);document.getElementById('tb').setAttribute('baseFrequency',s[1]);document.getElementById('cm').setAttribute('values',s[2]);document.getElementById('fa').setAttribute('tableValues',s[3]);vn.style.display=s[3].replace(/[0 ]/g,'')?'':'none';ch.style.display=s[4]?'':'none';
st.style.setProperty('--o',vi.value/100);document.getElementById('vv').textContent=vi.value+'%';bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
chips();bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));vi.addEventListener('input',up);up();
</script>
</body></html>