Logo Heatmap
A wordmark seen through a thermal camera: heat rises from the letters, flickers and cools, and flares up wherever the cursor or finger goes. Own heat simulation on canvas, pauses when off screen.
How to use it
- Paste the HTML where the backgrounds & webgl should appear.
- Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
- Add the JavaScript and call init() with the element that contains the HTML.
<!-- Logo Heatmap · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="h3hm">
<canvas class="h3hm-cv" role="img" aria-label="Woordmerk Vonk als gloeiend warmtebeeld"></canvas>
</div>
</div>/* Logo Heatmap · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie */
/* fonts (Fontshare): cabinet-grotesk@800 */
.h3hm{position:relative;width:100%;height:100%;min-height:200px;background:#070605;overflow:hidden;touch-action:pan-y}
.h3hm-cv{position:absolute;inset:0;width:100%;height:100%;display:block}// Logo Heatmap · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie
// root = het element waarin de HTML staat
function init(root){
var wrap = root.querySelector('.h3hm'), cv = root.querySelector('.h3hm-cv'), ctx = cv.getContext('2d');
if (!ctx) return;
var still = window.matchMedia && matchMedia('(prefers-reduced-motion: reduce)').matches;
var WOORD = 'Vonk', FONT = "800 {s}px 'Cabinet Grotesk', Switzer, sans-serif";
var gw = 0, gh = 0, warm, nieuw, bron, klein = document.createElement('canvas'), kc = klein.getContext('2d'), beeld, W = 0, H = 0, D = 1;
var muis = null, raf = 0, zichtbaar = true;
var PAL = new Uint8ClampedArray(256 * 3);
(function () {
var stops = [[0, 7, 6, 5], [0.18, 60, 6, 2], [0.38, 170, 24, 4], [0.58, 240, 82, 14], [0.78, 255, 168, 52], [0.92, 255, 226, 150], [1, 255, 250, 232]];
for (var i = 0; i < 256; i++) {
var t = i / 255, j = 0; while (j < stops.length - 2 && t > stops[j + 1][0]) j++;
var a = stops[j], b = stops[j + 1], f = (t - a[0]) / (b[0] - a[0]);
for (var c = 1; c < 4; c++) PAL[i * 3 + c - 1] = a[c] + (b[c] - a[c]) * f;
}
})();
function tekstMaat(c, w, h) { var s = h * 0.62; c.font = FONT.replace('{s}', s); var m = c.measureText(WOORD).width; if (m > w * 0.82) s *= (w * 0.82) / m; return s; }
function opbouw() {
var r = wrap.getBoundingClientRect(); if (!r.width) return;
W = r.width; H = r.height; D = Math.min(2, window.devicePixelRatio || 1);
cv.width = Math.round(W * D); cv.height = Math.round(H * D);
gw = Math.max(80, Math.min(220, Math.round(W / 4))); gh = Math.max(40, Math.round(gw * H / W));
warm = new Float32Array(gw * gh); nieuw = new Float32Array(gw * gh); bron = new Float32Array(gw * gh);
klein.width = gw; klein.height = gh; beeld = kc.createImageData(gw, gh);
kc.clearRect(0, 0, gw, gh); kc.fillStyle = '#fff'; kc.textAlign = 'center'; kc.textBaseline = 'middle';
var s = tekstMaat(kc, gw, gh); kc.font = FONT.replace('{s}', s); kc.fillText(WOORD, gw / 2, gh * 0.54);
var px = kc.getImageData(0, 0, gw, gh).data;
for (var i = 0; i < gw * gh; i++) bron[i] = px[i * 4 + 3] / 255;
if (still) { for (var k = 0; k < 90; k++) stap(); teken(); }
}
function stap() {
var x, y, i;
for (i = 0; i < gw * gh; i++) if (bron[i] > 0.05) warm[i] = Math.max(warm[i], bron[i] * (0.72 + Math.random() * 0.3));
if (muis) {
var mx = muis.x * gw, my = muis.y * gh, R = Math.max(4, gw * 0.05);
for (y = Math.max(0, my - R | 0); y < Math.min(gh, my + R + 1); y++) for (x = Math.max(0, mx - R | 0); x < Math.min(gw, mx + R + 1); x++) {
var d = ((x - mx) * (x - mx) + (y - my) * (y - my)) / (R * R); if (d < 1) { i = y * gw + x; warm[i] = Math.min(1, warm[i] + (1 - d) * 0.55); }
}
}
for (y = 0; y < gh; y++) {
var yo = Math.min(gh - 1, y + 1);
for (x = 0; x < gw; x++) {
var xl = x > 0 ? x - 1 : x, xr = x < gw - 1 ? x + 1 : x;
var s = warm[yo * gw + xl] + warm[yo * gw + x] * 2 + warm[yo * gw + xr] + warm[y * gw + x];
var koel = 0.955 - Math.random() * 0.03;
nieuw[y * gw + x] = s * 0.2 * koel;
}
}
var t = warm; warm = nieuw; nieuw = t;
}
function teken() {
var d = beeld.data;
for (var i = 0; i < gw * gh; i++) {
var v = Math.min(1, warm[i] * 1.08), p = (v * 255 | 0) * 3;
d[i * 4] = PAL[p]; d[i * 4 + 1] = PAL[p + 1]; d[i * 4 + 2] = PAL[p + 2]; d[i * 4 + 3] = 255;
}
kc.putImageData(beeld, 0, 0);
ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.imageSmoothingEnabled = true; ctx.imageSmoothingQuality = 'high';
ctx.drawImage(klein, 0, 0, cv.width, cv.height);
ctx.globalCompositeOperation = 'lighter'; ctx.globalAlpha = 0.28; ctx.fillStyle = '#ffd9a8';
ctx.textAlign = 'center'; ctx.textBaseline = 'middle';
var s = tekstMaat(ctx, cv.width, cv.height); ctx.font = FONT.replace('{s}', s); ctx.fillText(WOORD, cv.width / 2, cv.height * 0.54);
ctx.globalAlpha = 1; ctx.globalCompositeOperation = 'source-over';
}
function lus() { if (!beeld) { raf = 0; return; } stap(); teken(); raf = zichtbaar ? requestAnimationFrame(lus) : 0; }
function start() { if (beeld && !still && !raf && zichtbaar) raf = requestAnimationFrame(lus); }
var klaar = function () { opbouw(); start(); };
if (document.fonts && document.fonts.load) document.fonts.load(FONT.replace('{s}', 80)).then(klaar, klaar); else klaar();
if (window.ResizeObserver) { var rt = 0; new ResizeObserver(function () { clearTimeout(rt); rt = setTimeout(opbouw, 120); }).observe(wrap); }
if ('IntersectionObserver' in window) new IntersectionObserver(function (es) { zichtbaar = es[0].isIntersecting; if (zichtbaar) start(); }).observe(wrap);
function zet(e) { var r = wrap.getBoundingClientRect(); muis = { x: (e.clientX - r.left) / r.width, y: (e.clientY - r.top) / r.height }; }
wrap.addEventListener('pointermove', zet);
wrap.addEventListener('pointerdown', zet);
wrap.addEventListener('pointerleave', function () { muis = null; });
wrap.addEventListener('pointerup', function (e) { if (e.pointerType !== 'mouse') muis = null; });
}
init(document.querySelector('.jouw-container'));
More backgrounds & webgl
Seen something you like?
Add it to your selection and send it over. We build your site around it, in your brand.
Get in touch →