# Turing pattern skin

> A simulated chemical reaction grows spots and mazes like the skin of a reef fish, and the pointer seeds new growth, on canvas.

- Category: [Backgrounds](https://library.aimran.es/components/patterns)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/pt-uvq16-turing
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

This background runs a Gray-Scott reaction-diffusion model, the same math behind the stripes and spots Alan Turing described in animal skins. Two virtual chemicals spread and react on a small grid, and the feed rate changes across the screen, so one side forms dots while the other forms winding labyrinths. The result looks organic and never quite repeats.

The colors map from the theme background through the third color to the first and second at the strongest areas. Density sets the grid resolution and speed the number of steps per frame. Drag the pointer to seed new colonies, and fresh spots also appear on their own.

## Code

### HTML

```html
<div class="pt-uvq16-turing"><canvas></canvas></div>
```

### CSS

```css
.pt-uvq16-turing {
  --c1: #ff6f59;
  --c2: #ffd6a5;
  --c3: #254441;
  --k: 1;
  /* velocidad */
  --d: 1;
  /* densidad / escala */
  --o: 1;
  /* opacidad */
  --bg: #05060a;
  --fg: #ffffff;
  --blend: screen;
  min-height: 100vh;
}

.pt-uvq16-turing {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg);
  container-type: size;
  isolation: isolate;
}

.pt-uvq16-turing>* {
  opacity: var(--o);
}

.pt-uvq16-turing canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
```

### JavaScript

```js
(function (el) {
const cv=el.querySelector("canvas"),x=cv.getContext("2d");let W=0,H=0,raf=0,LF=null,pend=null,vis=true,dead=false,RF=0;
const RM=matchMedia("(prefers-reduced-motion: reduce)").matches;
const fit=()=>{const r=Math.min(window.devicePixelRatio||1,2),w=el.clientWidth,h=el.clientHeight;if(w===W&&h===H&&cv.width===Math.round(w*r))return;W=w;H=h;cv.width=Math.round(w*r);cv.height=Math.round(h*r);x.setTransform(r,0,0,r,0,0);if(RM&&LF){RF=0;LF()}};
const ro=new ResizeObserver(fit);ro.observe(el);fit();
const io=new IntersectionObserver(e=>{vis=e[e.length-1].isIntersecting;if(vis&&pend&&!dead){const f=pend;pend=null;raf=window.requestAnimationFrame(f)}});io.observe(el);
const requestAnimationFrame=f=>{LF=f;if(dead)return 0;if(RM){if(++RF<90)f();return 0}if(!vis){pend=f;return 0}return window.requestAnimationFrame(f)};
const V=()=>{const s=getComputedStyle(el),g=n=>s.getPropertyValue(n).trim();return{c1:g("--c1"),c2:g("--c2"),c3:g("--c3"),bg:g("--bg")||"#05060a",k:+g("--k")||1,d:+g("--d")||1}};
const pc=document.createElement("canvas").getContext("2d"),CC={};
const rgb=c=>{if(CC[c])return CC[c];pc.fillStyle="#000";pc.fillStyle=c;const s=pc.fillStyle;return CC[c]=s[0]==="#"?[1,3,5].map(i=>parseInt(s.slice(i,i+2),16)):s.slice(s.indexOf("(")+1).split(",").slice(0,3).map(parseFloat)};
const mix=(a,b,p)=>[a[0]+(b[0]-a[0])*p,a[1]+(b[1]-a[1])*p,a[2]+(b[2]-a[2])*p];
const css=(a,o)=>o===undefined?"rgb("+(a[0]|0)+","+(a[1]|0)+","+(a[2]|0)+")":"rgba("+(a[0]|0)+","+(a[1]|0)+","+(a[2]|0)+","+o+")";
const lum=a=>(a[0]*.299+a[1]*.587+a[2]*.114)/255;const m={x:-1e4,y:-1e4,vx:0,vy:0,on:false};const mv=e=>{const r=el.getBoundingClientRect();if(!r.width)return;const nx=(e.clientX-r.left)*W/r.width,ny=(e.clientY-r.top)*H/r.height;if(m.on){m.vx=nx-m.x;m.vy=ny-m.y}m.x=nx;m.y=ny;m.on=true};const lv=()=>{m.on=false;m.x=m.y=-1e4;m.vx=m.vy=0};el.addEventListener("pointermove",mv);el.addEventListener("pointerdown",mv);el.addEventListener("pointerleave",lv);el.addEventListener("pointercancel",lv);
const o=document.createElement("canvas"),g=o.getContext("2d");let gw=0,gh=0,P=0,U,Q,U2,Q2,img,buf,tick=0,lk="";const LUT=new Uint32Array(64);
const seed=(cx,cy,r)=>{for(let j=-r;j<=r;j++)for(let i=-r;i<=r;i++){if(i*i+j*j>r*r)continue;const k=(((cy+j)%gh+gh)%gh)*gw+((cx+i)%gw+gw)%gw;Q[k]=.5;U[k]=.5}};
const init=p=>{P=p;gw=Math.max(8,Math.ceil(W/p));gh=Math.max(8,Math.ceil(H/p));const n=gw*gh;U=new Float32Array(n).fill(1);Q=new Float32Array(n);U2=new Float32Array(n);Q2=new Float32Array(n);o.width=gw;o.height=gh;img=g.createImageData(gw,gh);buf=new Uint32Array(img.data.buffer);for(let s=0;s<Math.max(30,n/160);s++)seed(Math.random()*gw|0,Math.random()*gh|0,1+(Math.random()*3|0))};
const loop=()=>{const v=V(),p=Math.max(2,Math.round(4/v.d));if(p!==P||gw!==Math.max(8,Math.ceil(W/p))||gh!==Math.max(8,Math.ceil(H/p)))init(p);
const ck=v.c1+v.c2+v.c3+v.bg;if(ck!==lk){lk=ck;const S=[rgb(v.bg),rgb(v.c3),rgb(v.c1),rgb(v.c2)],T=[0,.3,.65,1];for(let q=0;q<64;q++){const u=q/63;let s=0;while(s<2&&u>T[s+1])s++;const c=mix(S[s],S[s+1],(u-T[s])/(T[s+1]-T[s]));LUT[q]=((255<<24)|((c[2]|0)<<16)|((c[1]|0)<<8)|(c[0]|0))>>>0}}
if(m.on)seed(m.x/p|0,m.y/p|0,2);if(++tick%70===0)seed(Math.random()*gw|0,Math.random()*gh|0,3);
const it=Math.max(1,Math.min(14,Math.round(12*v.k*Math.min(1,26000/(gw*gh)))));
for(let s=0;s<it;s++){for(let j=0;j<gh;j++){const jn=(j?j-1:gh-1)*gw,js=(j<gh-1?j+1:0)*gw,jc=j*gw,K=.0605+.0025*(j/gh);
for(let i=0;i<gw;i++){const iw=i?i-1:gw-1,ie=i<gw-1?i+1:0,k=jc+i,u=U[k],w=Q[k],F=.03+.026*(i/gw),uvv=u*w*w;
U2[k]=u+.21*(U[jc+iw]+U[jc+ie]+U[jn+i]+U[js+i]-4*u)-uvv+F*(1-u);Q2[k]=w+.105*(Q[jc+iw]+Q[jc+ie]+Q[jn+i]+Q[js+i]-4*w)+uvv-(F+K)*w}}
let a=U;U=U2;U2=a;a=Q;Q=Q2;Q2=a}
for(let k=0;k<gw*gh;k++){buf[k]=LUT[Math.min(63,Math.max(0,Q[k]*215|0))]}
g.putImageData(img,0,0);x.imageSmoothingEnabled=true;x.drawImage(o,0,0,gw*p,gh*p);raf=requestAnimationFrame(loop)};loop();
return()=>{dead=true;cancelAnimationFrame(raf);ro.disconnect();io.disconnect();el.removeEventListener("pointermove",mv);el.removeEventListener("pointerdown",mv);el.removeEventListener("pointerleave",lv);el.removeEventListener("pointercancel",lv)};
})(document.querySelector(".pt-uvq16-turing"));
```

### React

```tsx
// @ts-nocheck
import { useEffect, useRef } from "react";

const css = `
.pt-uvq16-turing {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg);
  container-type: size;
  isolation: isolate;
}

.pt-uvq16-turing>* {
  opacity: var(--o);
}

.pt-uvq16-turing canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

`;

export default function PatternUvq16Turing() {
  const ref = useRef(null);
  useEffect(() => {
    const el = ref.current;
    if (!el) return;
const cv=el.querySelector("canvas"),x=cv.getContext("2d");let W=0,H=0,raf=0,LF=null,pend=null,vis=true,dead=false,RF=0;
const RM=matchMedia("(prefers-reduced-motion: reduce)").matches;
const fit=()=>{const r=Math.min(window.devicePixelRatio||1,2),w=el.clientWidth,h=el.clientHeight;if(w===W&&h===H&&cv.width===Math.round(w*r))return;W=w;H=h;cv.width=Math.round(w*r);cv.height=Math.round(h*r);x.setTransform(r,0,0,r,0,0);if(RM&&LF){RF=0;LF()}};
const ro=new ResizeObserver(fit);ro.observe(el);fit();
const io=new IntersectionObserver(e=>{vis=e[e.length-1].isIntersecting;if(vis&&pend&&!dead){const f=pend;pend=null;raf=window.requestAnimationFrame(f)}});io.observe(el);
const requestAnimationFrame=f=>{LF=f;if(dead)return 0;if(RM){if(++RF<90)f();return 0}if(!vis){pend=f;return 0}return window.requestAnimationFrame(f)};
const V=()=>{const s=getComputedStyle(el),g=n=>s.getPropertyValue(n).trim();return{c1:g("--c1"),c2:g("--c2"),c3:g("--c3"),bg:g("--bg")||"#05060a",k:+g("--k")||1,d:+g("--d")||1}};
const pc=document.createElement("canvas").getContext("2d"),CC={};
const rgb=c=>{if(CC[c])return CC[c];pc.fillStyle="#000";pc.fillStyle=c;const s=pc.fillStyle;return CC[c]=s[0]==="#"?[1,3,5].map(i=>parseInt(s.slice(i,i+2),16)):s.slice(s.indexOf("(")+1).split(",").slice(0,3).map(parseFloat)};
const mix=(a,b,p)=>[a[0]+(b[0]-a[0])*p,a[1]+(b[1]-a[1])*p,a[2]+(b[2]-a[2])*p];
const css=(a,o)=>o===undefined?"rgb("+(a[0]|0)+","+(a[1]|0)+","+(a[2]|0)+")":"rgba("+(a[0]|0)+","+(a[1]|0)+","+(a[2]|0)+","+o+")";
const lum=a=>(a[0]*.299+a[1]*.587+a[2]*.114)/255;const m={x:-1e4,y:-1e4,vx:0,vy:0,on:false};const mv=e=>{const r=el.getBoundingClientRect();if(!r.width)return;const nx=(e.clientX-r.left)*W/r.width,ny=(e.clientY-r.top)*H/r.height;if(m.on){m.vx=nx-m.x;m.vy=ny-m.y}m.x=nx;m.y=ny;m.on=true};const lv=()=>{m.on=false;m.x=m.y=-1e4;m.vx=m.vy=0};el.addEventListener("pointermove",mv);el.addEventListener("pointerdown",mv);el.addEventListener("pointerleave",lv);el.addEventListener("pointercancel",lv);
const o=document.createElement("canvas"),g=o.getContext("2d");let gw=0,gh=0,P=0,U,Q,U2,Q2,img,buf,tick=0,lk="";const LUT=new Uint32Array(64);
const seed=(cx,cy,r)=>{for(let j=-r;j<=r;j++)for(let i=-r;i<=r;i++){if(i*i+j*j>r*r)continue;const k=(((cy+j)%gh+gh)%gh)*gw+((cx+i)%gw+gw)%gw;Q[k]=.5;U[k]=.5}};
const init=p=>{P=p;gw=Math.max(8,Math.ceil(W/p));gh=Math.max(8,Math.ceil(H/p));const n=gw*gh;U=new Float32Array(n).fill(1);Q=new Float32Array(n);U2=new Float32Array(n);Q2=new Float32Array(n);o.width=gw;o.height=gh;img=g.createImageData(gw,gh);buf=new Uint32Array(img.data.buffer);for(let s=0;s<Math.max(30,n/160);s++)seed(Math.random()*gw|0,Math.random()*gh|0,1+(Math.random()*3|0))};
const loop=()=>{const v=V(),p=Math.max(2,Math.round(4/v.d));if(p!==P||gw!==Math.max(8,Math.ceil(W/p))||gh!==Math.max(8,Math.ceil(H/p)))init(p);
const ck=v.c1+v.c2+v.c3+v.bg;if(ck!==lk){lk=ck;const S=[rgb(v.bg),rgb(v.c3),rgb(v.c1),rgb(v.c2)],T=[0,.3,.65,1];for(let q=0;q<64;q++){const u=q/63;let s=0;while(s<2&&u>T[s+1])s++;const c=mix(S[s],S[s+1],(u-T[s])/(T[s+1]-T[s]));LUT[q]=((255<<24)|((c[2]|0)<<16)|((c[1]|0)<<8)|(c[0]|0))>>>0}}
if(m.on)seed(m.x/p|0,m.y/p|0,2);if(++tick%70===0)seed(Math.random()*gw|0,Math.random()*gh|0,3);
const it=Math.max(1,Math.min(14,Math.round(12*v.k*Math.min(1,26000/(gw*gh)))));
for(let s=0;s<it;s++){for(let j=0;j<gh;j++){const jn=(j?j-1:gh-1)*gw,js=(j<gh-1?j+1:0)*gw,jc=j*gw,K=.0605+.0025*(j/gh);
for(let i=0;i<gw;i++){const iw=i?i-1:gw-1,ie=i<gw-1?i+1:0,k=jc+i,u=U[k],w=Q[k],F=.03+.026*(i/gw),uvv=u*w*w;
U2[k]=u+.21*(U[jc+iw]+U[jc+ie]+U[jn+i]+U[js+i]-4*u)-uvv+F*(1-u);Q2[k]=w+.105*(Q[jc+iw]+Q[jc+ie]+Q[jn+i]+Q[js+i]-4*w)+uvv-(F+K)*w}}
let a=U;U=U2;U2=a;a=Q;Q=Q2;Q2=a}
for(let k=0;k<gw*gh;k++){buf[k]=LUT[Math.min(63,Math.max(0,Q[k]*215|0))]}
g.putImageData(img,0,0);x.imageSmoothingEnabled=true;x.drawImage(o,0,0,gw*p,gh*p);raf=requestAnimationFrame(loop)};loop();
return()=>{dead=true;cancelAnimationFrame(raf);ro.disconnect();io.disconnect();el.removeEventListener("pointermove",mv);el.removeEventListener("pointerdown",mv);el.removeEventListener("pointerleave",lv);el.removeEventListener("pointercancel",lv)};
  }, []);
  return (
    <>
      <style>{css}</style>
      <div
        ref={ref}
        className="pt-uvq16-turing"
        style={{
          "--c1": "#ff6f59",
          "--c2": "#ffd6a5",
          "--c3": "#254441",
          "--k": 1,
          "--d": 1,
          "--o": 1,
          "--bg": "#05060a",
          "--fg": "#ffffff",
          "--blend": "screen",
          minHeight: "100vh",
        }}
      >
        <canvas></canvas>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Turing pattern skin” block (Backgrounds) from AIMRAN Library to my project.

## What it is
A simulated chemical reaction grows spots and mazes like the skin of a reef fish, and the pointer seeds new growth, on canvas.

## Chosen settings
- Color 1: #ff6f59
- Color 2: #ffd6a5
- Color 3: #254441
- Speed: 1x (from 0.2 to 3x)
- Density / scale: 1x (from 0.5 to 2x)
- Opacity: 1 (from 0.2 to 1)

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
// @ts-nocheck
import { useEffect, useRef } from "react";

const css = `
.pt-uvq16-turing {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg);
  container-type: size;
  isolation: isolate;
}

.pt-uvq16-turing>* {
  opacity: var(--o);
}

.pt-uvq16-turing canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

`;

export default function PatternUvq16Turing() {
  const ref = useRef(null);
  useEffect(() => {
    const el = ref.current;
    if (!el) return;
const cv=el.querySelector("canvas"),x=cv.getContext("2d");let W=0,H=0,raf=0,LF=null,pend=null,vis=true,dead=false,RF=0;
const RM=matchMedia("(prefers-reduced-motion: reduce)").matches;
const fit=()=>{const r=Math.min(window.devicePixelRatio||1,2),w=el.clientWidth,h=el.clientHeight;if(w===W&&h===H&&cv.width===Math.round(w*r))return;W=w;H=h;cv.width=Math.round(w*r);cv.height=Math.round(h*r);x.setTransform(r,0,0,r,0,0);if(RM&&LF){RF=0;LF()}};
const ro=new ResizeObserver(fit);ro.observe(el);fit();
const io=new IntersectionObserver(e=>{vis=e[e.length-1].isIntersecting;if(vis&&pend&&!dead){const f=pend;pend=null;raf=window.requestAnimationFrame(f)}});io.observe(el);
const requestAnimationFrame=f=>{LF=f;if(dead)return 0;if(RM){if(++RF<90)f();return 0}if(!vis){pend=f;return 0}return window.requestAnimationFrame(f)};
const V=()=>{const s=getComputedStyle(el),g=n=>s.getPropertyValue(n).trim();return{c1:g("--c1"),c2:g("--c2"),c3:g("--c3"),bg:g("--bg")||"#05060a",k:+g("--k")||1,d:+g("--d")||1}};
const pc=document.createElement("canvas").getContext("2d"),CC={};
const rgb=c=>{if(CC[c])return CC[c];pc.fillStyle="#000";pc.fillStyle=c;const s=pc.fillStyle;return CC[c]=s[0]==="#"?[1,3,5].map(i=>parseInt(s.slice(i,i+2),16)):s.slice(s.indexOf("(")+1).split(",").slice(0,3).map(parseFloat)};
const mix=(a,b,p)=>[a[0]+(b[0]-a[0])*p,a[1]+(b[1]-a[1])*p,a[2]+(b[2]-a[2])*p];
const css=(a,o)=>o===undefined?"rgb("+(a[0]|0)+","+(a[1]|0)+","+(a[2]|0)+")":"rgba("+(a[0]|0)+","+(a[1]|0)+","+(a[2]|0)+","+o+")";
const lum=a=>(a[0]*.299+a[1]*.587+a[2]*.114)/255;const m={x:-1e4,y:-1e4,vx:0,vy:0,on:false};const mv=e=>{const r=el.getBoundingClientRect();if(!r.width)return;const nx=(e.clientX-r.left)*W/r.width,ny=(e.clientY-r.top)*H/r.height;if(m.on){m.vx=nx-m.x;m.vy=ny-m.y}m.x=nx;m.y=ny;m.on=true};const lv=()=>{m.on=false;m.x=m.y=-1e4;m.vx=m.vy=0};el.addEventListener("pointermove",mv);el.addEventListener("pointerdown",mv);el.addEventListener("pointerleave",lv);el.addEventListener("pointercancel",lv);
const o=document.createElement("canvas"),g=o.getContext("2d");let gw=0,gh=0,P=0,U,Q,U2,Q2,img,buf,tick=0,lk="";const LUT=new Uint32Array(64);
const seed=(cx,cy,r)=>{for(let j=-r;j<=r;j++)for(let i=-r;i<=r;i++){if(i*i+j*j>r*r)continue;const k=(((cy+j)%gh+gh)%gh)*gw+((cx+i)%gw+gw)%gw;Q[k]=.5;U[k]=.5}};
const init=p=>{P=p;gw=Math.max(8,Math.ceil(W/p));gh=Math.max(8,Math.ceil(H/p));const n=gw*gh;U=new Float32Array(n).fill(1);Q=new Float32Array(n);U2=new Float32Array(n);Q2=new Float32Array(n);o.width=gw;o.height=gh;img=g.createImageData(gw,gh);buf=new Uint32Array(img.data.buffer);for(let s=0;s<Math.max(30,n/160);s++)seed(Math.random()*gw|0,Math.random()*gh|0,1+(Math.random()*3|0))};
const loop=()=>{const v=V(),p=Math.max(2,Math.round(4/v.d));if(p!==P||gw!==Math.max(8,Math.ceil(W/p))||gh!==Math.max(8,Math.ceil(H/p)))init(p);
const ck=v.c1+v.c2+v.c3+v.bg;if(ck!==lk){lk=ck;const S=[rgb(v.bg),rgb(v.c3),rgb(v.c1),rgb(v.c2)],T=[0,.3,.65,1];for(let q=0;q<64;q++){const u=q/63;let s=0;while(s<2&&u>T[s+1])s++;const c=mix(S[s],S[s+1],(u-T[s])/(T[s+1]-T[s]));LUT[q]=((255<<24)|((c[2]|0)<<16)|((c[1]|0)<<8)|(c[0]|0))>>>0}}
if(m.on)seed(m.x/p|0,m.y/p|0,2);if(++tick%70===0)seed(Math.random()*gw|0,Math.random()*gh|0,3);
const it=Math.max(1,Math.min(14,Math.round(12*v.k*Math.min(1,26000/(gw*gh)))));
for(let s=0;s<it;s++){for(let j=0;j<gh;j++){const jn=(j?j-1:gh-1)*gw,js=(j<gh-1?j+1:0)*gw,jc=j*gw,K=.0605+.0025*(j/gh);
for(let i=0;i<gw;i++){const iw=i?i-1:gw-1,ie=i<gw-1?i+1:0,k=jc+i,u=U[k],w=Q[k],F=.03+.026*(i/gw),uvv=u*w*w;
U2[k]=u+.21*(U[jc+iw]+U[jc+ie]+U[jn+i]+U[js+i]-4*u)-uvv+F*(1-u);Q2[k]=w+.105*(Q[jc+iw]+Q[jc+ie]+Q[jn+i]+Q[js+i]-4*w)+uvv-(F+K)*w}}
let a=U;U=U2;U2=a;a=Q;Q=Q2;Q2=a}
for(let k=0;k<gw*gh;k++){buf[k]=LUT[Math.min(63,Math.max(0,Q[k]*215|0))]}
g.putImageData(img,0,0);x.imageSmoothingEnabled=true;x.drawImage(o,0,0,gw*p,gh*p);raf=requestAnimationFrame(loop)};loop();
return()=>{dead=true;cancelAnimationFrame(raf);ro.disconnect();io.disconnect();el.removeEventListener("pointermove",mv);el.removeEventListener("pointerdown",mv);el.removeEventListener("pointerleave",lv);el.removeEventListener("pointercancel",lv)};
  }, []);
  return (
    <>
      <style>{css}</style>
      <div
        ref={ref}
        className="pt-uvq16-turing"
        style={{
          "--c1": "#ff6f59",
          "--c2": "#ffd6a5",
          "--c3": "#254441",
          "--k": 1,
          "--d": 1,
          "--o": 1,
          "--bg": "#05060a",
          "--fg": "#ffffff",
          "--blend": "screen",
          minHeight: "100vh",
        }}
      >
        <canvas></canvas>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
