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.
60 FPS • Canvas 2D
Click + Drag to interact with field
</>
Full Executable Algorithm Code
147 lines
5126 chars
// 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(θ)=(R−r)cosθ+dcos(rR−rθ+ϕ),y(θ)=(R−r)sinθ−dsin(rR−rθ+ϕ)
Click to expand
∑
Guilloché Horology Lace Filigree
Full Mathematical System • geometry
100%
Complete System of Equations
[Governing Law][Discrete Progression]theta)+d⋅cos(k⋅theta+φ),y=(R−r)⋅sin(theta)−d⋅sin(k⋅theta+φ)[Domain & Space][Parameter State]x(θ)=(R−r)cosθ+dcos(rR−rθ+ϕ),y(θ)=(R−r)sinθ−dsin(rR−rθ+ϕ)x=(R−r)⋅cos(x∈R2,t∈R+,ω∈[0,2π]λgearRatio=7(Rosette Ratio),λeccentricity=0.75(Lace Eccentricity),λwaveModulation=12(Moireˊ Wave),λspeed=0.4(Precession Rate)
x(θ)=(R−r)cosθ+dcos(rR−rθ+ϕ),y(θ)=(R−r)sinθ−dsin(rR−rθ+ϕ)
Computational Implementation (JavaScript Engine Equivalent)
x = (R-r)*cos(θ) + d*cos(k*θ + φ), y = (R-r)*sin(θ) - d*sin(k*θ + φ) 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
Press ESC or F to exit