97

Guilloché Horology Lace Filigree

High-precision geometric guilloché engine-turned filigree inspired by luxury Swiss watch dials and banknote security tracery. Multi-layer hypotrochoid rosettes create shimmering moiré interference lace.

Playground
60 FPS Canvas 2D
Click + Drag to interact with field
</>

Full Executable Algorithm Code

// 063 - Guilloché Horology Lace Filigree (geometry)
// 1:1 Original algorithm engine source
function createGuillocheFiligrane() {
  return {
    setup() {
    },
    render(context, timeState, params) {
      const { ctx, width, height } = context;
      const speed = Number(params.speed ?? 0.4);
      const gearRatio = Number(params.gearRatio ?? 7);
      const eccentricity = Number(params.eccentricity ?? 0.75);
      const waveMod = Number(params.waveModulation ?? 12);
      const t = timeState.time * speed;
      ctx.fillStyle = "#04060c";
      ctx.fillRect(0, 0, width, height);
      const cx = width * 0.5;
      const cy = height * 0.5;
      const baseR = Math.min(width, height) * 0.42;
      ctx.save();
      ctx.translate(cx, cy);
      const layers = 5;
      const totalSteps = 480;
      for (let layer = 0; layer < layers; layer++) {
        const layerFrac = (layer + 1) / layers;
        const R = baseR * (0.35 + 0.65 * layerFrac);
        const r = R / gearRatio * (1 + 0.05 * Math.sin(t * 0.8 + layer));
        const d = r * eccentricity * (1 + 0.15 * Math.cos(t * 1.2 + layer));
        const layerPhase = t * (layer % 2 === 0 ? 0.35 : -0.28) + layer * Math.PI / layers;
        const baseHue = (210 + layer * 22 + t * 15) % 360;
        ctx.beginPath();
        for (let i = 0; i <= totalSteps; i++) {
          const theta = i / totalSteps * Math.PI * 2 * gearRatio;
          const diff = R - r;
          const k = diff / r;
          const modHarmonic = Math.sin(theta * (waveMod / gearRatio) + layerPhase) * (baseR * 0.04 * layerFrac);
          const x = diff * Math.cos(theta) + (d + modHarmonic) * Math.cos(k * theta + layerPhase);
          const y = diff * Math.sin(theta) - (d + modHarmonic) * Math.sin(k * theta + layerPhase);
          if (i === 0) ctx.moveTo(x, y);
          else ctx.lineTo(x, y);
        }
        ctx.closePath();
        ctx.strokeStyle = hsla(baseHue, 92, 74, 0.55 + layer * 0.08);
        ctx.lineWidth = 1;
        ctx.stroke();
        if (layer % 2 === 1) {
          ctx.beginPath();
          for (let j = 0; j <= totalSteps; j += 6) {
            const theta = j / totalSteps * Math.PI * 2 * gearRatio;
            const diff = R - r;
            const k = diff / r;
            const x = diff * Math.cos(theta) + d * Math.cos(k * theta + layerPhase);
            const y = diff * Math.sin(theta) - d * Math.sin(k * theta + layerPhase);
            const nx = x * (1 + 0.08 * Math.sin(theta * 3 + t * 2));
            const ny = y * (1 + 0.08 * Math.sin(theta * 3 + t * 2));
            ctx.moveTo(x, y);
            ctx.lineTo(nx, ny);
          }
          ctx.strokeStyle = hsla(baseHue + 40, 95, 82, 0.28);
          ctx.lineWidth = 0.6;
          ctx.stroke();
        }
      }
      ctx.beginPath();
      ctx.arc(0, 0, baseR * 0.07, 0, Math.PI * 2);
      ctx.fillStyle = "rgba(14, 165, 233, 0.25)";
      ctx.fill();
      ctx.strokeStyle = hsla(195, 100, 85, 0.9);
      ctx.lineWidth = 1.6;
      ctx.stroke();
      const ticks = 72;
      for (let k = 0; k < ticks; k++) {
        const a = k / ticks * Math.PI * 2 + t * 0.05;
        const rInner = baseR * (k % 6 === 0 ? 0.94 : 0.97);
        const rOuter = baseR;
        ctx.beginPath();
        ctx.moveTo(Math.cos(a) * rInner, Math.sin(a) * rInner);
        ctx.lineTo(Math.cos(a) * rOuter, Math.sin(a) * rOuter);
        ctx.strokeStyle = hsla(200, 80, 75, k % 6 === 0 ? 0.7 : 0.35);
        ctx.lineWidth = k % 6 === 0 ? 1.4 : 0.75;
        ctx.stroke();
      }
      ctx.restore();
    }
  };
}

// Default parameters from content metadata
const defaultParams = [
  {
    "key": "gearRatio",
    "label": "Rosette Ratio",
    "type": "range",
    "min": 3,
    "max": 15,
    "step": 1,
    "defaultValue": 7,
    "description": "Hypotrochoid petal count ratio"
  },
  {
    "key": "eccentricity",
    "label": "Lace Eccentricity",
    "type": "range",
    "min": 0.2,
    "max": 1.4,
    "step": 0.05,
    "defaultValue": 0.75,
    "description": "Cycloid loop extension depth"
  },
  {
    "key": "waveModulation",
    "label": "Moiré Wave",
    "type": "range",
    "min": 4,
    "max": 24,
    "step": 2,
    "defaultValue": 12,
    "description": "Harmonic interference frequency"
  },
  {
    "key": "speed",
    "label": "Precession Rate",
    "type": "range",
    "min": 0.1,
    "max": 1.5,
    "step": 0.05,
    "defaultValue": 0.4,
    "description": "Continuous phase rotation speed"
  }
];

if (!window.__art_instances) window.__art_instances = {};
if (!window.__art_instances['guilloche-filigrane']) {
  const inst = typeof createGuillocheFiligrane === 'function' ? createGuillocheFiligrane() : null;
  if (inst && inst.setup) {
    inst.setup({ ctx, width, height, dpr: 1, aspectRatio: width / height }, defaultParams);
  }
  window.__art_instances['guilloche-filigrane'] = inst;
}

const instance = window.__art_instances['guilloche-filigrane'];
if (instance && instance.render) {
  instance.render(
    { ctx, width, height, dpr: 1, aspectRatio: width / height },
    { time, deltaTime: dt, frameCount: Math.floor(time * 60), fps: 60 },
    defaultParams
  );
}
Edit in Interactive Playground Zero Dependencies • Standalone Canvas 2D
ƒ

Mathematical Formulation

high
Analytical Equation
x(θ)=(Rr)cosθ+dcos(Rrrθ+ϕ),y(θ)=(Rr)sinθdsin(Rrrθ+ϕ)x(\theta) = (R-r)\cos\theta + d\cos\left(\frac{R-r}{r}\theta + \phi\right), \quad y(\theta) = (R-r)\sin\theta - d\sin\left(\frac{R-r}{r}\theta + \phi\right)
Click to expand
Compact Formula
x = (R-r)*cos(θ) + d*cos(k*θ + φ), y = (R-r)*sin(θ) - d*sin(k*θ + φ)

Mathematical Tags

#guilloche #filigrane #filigree #horology #banknote #cycloid #moire #geometry #hypotrochoid
Author: Math Art Core Target: 60 FPS

Export & Embed: Guilloché Horology Lace Filigree

4K PNG Snapshot

High-resolution single frame render

WebM Video (5s Loop)

60 FPS browser-captured stream

Standalone JS Script

Complete executable Canvas 2D algorithm

HTML Iframe Embed

<iframe src="https://art.fazleyrabbi.xyz/embed/guilloche-filigrane" width="500" height="500" frameborder="0" loading="lazy"></iframe>
ESC
↑↓ Navigate Select
101 Mathematical Artworks

Support the Project

Keep mathematical creative coding alive & open source

Or via Direct Payoneer ($0 Fee)
Payoneer Customer ID: $0 Fee Direct
24076084

💡 Payoneer app: Go to Pay → Pay to recipient → Enter ID 24076084.

Thank you for supporting generative mathematical animations! ✨