Sinusoidal Deformation Field
y = sin(x * 0.02 + t) * cos(y * 0.01 + t * 0.5) * 35 + sin(dist(x, y) * 0.05 - t * 2) * 20 Discover self-contained mathematical algorithms rendered in real time on HTML Canvas. Inspect the formulas, remix parameters, and copy the code for your own projects.
Sinusoidal Deformation Field
y = sin(x * 0.02 + t) * cos(y * 0.01 + t * 0.5) * 35 + sin(dist(x, y) * 0.05 - t * 2) * 20 Golden Ratio Plant Morphogenesis
θ = n * 137.508°, r = c * √n, x = r * cos(θ + t), y = r * sin(θ + t) Gielis Morphological Symmetry
r = (|cos(m*φ/4)/a|^n2 + |sin(m*φ/4)/b|^n3)^(-1/n1) 2D Fractal Brownian Flow
angle = fbm(x * 0.003, y * 0.003 + t * 0.15) * 4π, v = [cos(angle), sin(angle)] Biot-Savart Point Vortex Dynamics
v_θ(r) = (Γ / 2πr) * (1 - exp(-r² / r_core²)) Divergence-Free Solenoidal Flow
vx = (N(x, y+ε) - N(x, y-ε)) / 2ε, vy = -(N(x+ε, y) - N(x-ε, y)) / 2ε Discrete Eulerian Advection
ρ_{x,y}^{t+1} = ρ_{x,y}^t * 0.94 + sin(r*0.4 - 3t)*cos(4θ + 2t)*exp(-0.1r)*0.15 Stommel-Munk Oceanic Stream Function
u = 2π sin(πx) cos(2πy), v = -π cos(πx) sin(2πy) Binary Core N-Body Gravity
a_x = G * dx / (dx² + dy² + ε²)^(3/2), a_y = G * dy / (dx² + dy² + ε²)^(3/2) 3D Projected Harmonic Knot Curves
x = sin(3φ + δ), y = sin(4φ), z = cos(5φ + t), px = cx + rotX * depth Dynamic Euclidean Distance Graph
d = dist(p_i, p_j), if (d < R) drawLine(p_i, p_j, alpha = 1 - d/R) Craig Reynolds Flocking Algorithm
v += align * 0.05 + cohere * 0.005 + separate * 0.15, p += clamp(v, maxSpeed) Conformal Disk Hyperbolic Geometry
r_hyp = R * tanh(l * 0.25 + 0.1 sin(t)), θ = 2πi / p*l + t/l Polar Symmetry Modulo Geometry
rotate(2πk / N), drawEllipse(0, r, w * (1 + 0.2 sin(2t + r)), h, rotOffset) Superimposed Spatial Frequency Grating
fringe = arc(c1, r) + arc(c2(t), r), beat_frequency = |k1 - k2| Recursive Golden Triangle Aperiodic Tiling
p4 = p1 + (p2 - p1) / φ, subdivide(RobinsonTriangle(depth - 1)) Epicycle Series Waveform Synthesis
r_k = (4 / kπ) * R, x += r_k cos(k t), y += r_k sin(k t), trace(y) 2D Chladni Resonance Nodal Lines
w(x, y) = sin(nπx)*sin(mπy) - sin(mπx)*sin(nπy), p -= ∇|w| * dt Korteweg-de Vries Non-Linear Wave Dynamics
u(x, t) = 2k² * sech²(k(x - 4k² t)), total_u = u1(x, t) + u2(x, -t) Bessel Multi-Source Wave Interference
w = Σ (sin(dist_i * freq - 2t) / (sqrt(dist_i)*0.1 + 1)), r_point = 0.5*(w + 1) Schwarzschild Metric Relativistic Deflection
v_orb = 2.5 / √r, y_warp = y - (1.5*rs / d)*22, doppler_hue = 190 + 30*sin(θ) Conic Section Gravitational Ephemerides
E_{k+1} = E_k - (E_k - e*sin(E_k) - M) / (1 - e*cos(E_k)), x = a*cos(E) - ae Lin-Shu Astrophysical Density Wave Theory
armPhase = (1/pitch) * ln(r/10) - 0.4t, r_eff = r * (1 - 0.12 * sin(m*(θ - armPhase))) SmoothLife Multi-Kernel Continuous Automata
avg = (1/8) * Σ neighbors, s_{t+1} = (0.25 <= avg <= 0.45) ? s + 0.08 : s - 0.05 Complex Dynamic Polynomial Iteration
z = z² + (-0.8 + 0.15 e^(iωt)), iter_escape = min(k | |z_k| > 2) Harmonic Umbrella Kinematics & Phosphor Pulse
r_dome = R*(1 + 0.22*sin(3t)), y_tentacle = y0 + s + sin(3t - 6s + k)*18s Bilateral Crustacean Gait Kinematics
knee = coxa + [cos(θ)*45 + reach, -20 + lift], pinch = 0.35 + 0.3*sin(3t) Segmented Pleon Arching & Pleopod Propulsion
antenna = -s*L - s^1.4*70 + sin(3t - 5s)*18s, pleopod = sin(6t - 0.8s)*0.6 Traveling Wave Pectoral Wing Hydrodynamics
wing_z = A(x)*sin(kx - ωt)*exp(-y²/σ²), tail = sin(3t - 4s)*20s Equiangular Logarithmic Chamber Geometry
r = a * exp(0.1759 * θ), septum_arch = quadCurve(inPoint, outPoint) Recursive Lindenmayer Botanical Branching
branch(x, y, len * ratio, angle ± Δθ + wind, depth - 1) Iterated Function System Botanical Attractor
nextX = 0.85x + 0.04y, nextY = -0.04x + 0.85y + 1.6 (p = 85%) Trochoidal Deep Water Wave Superposition
x = x0 - (dx/k)*Q*sin(phase), y = y0 - A*cos(phase), phase = k*(dx*x0 + dy*y0) - ωt Differential Growth Curve & Radial Polyp Bloom
r_ridge = R0 + 12 sin(6θ + 0.5t) + 6 cos(12θ - t), tentacle = quadCurve(mouth, ctrlWave, tip) Electrocardiogram Fourier Waveform & Vascular Rhythm
ecg(t) = P(0.18) + Q(-0.15) + R(1.0) + S(-0.3) + T(0.35), heart_scale = 1 + 0.22*ecg Hodgkin-Huxley Action Potential Transmission
spike = (timer % 2.5) < 0.25, pulse(px, py) = soma_i + (soma_j - soma_i) * (2t % 1) 3D Revolving Molecular Helical Geometry
strand1 = [R cos(4πy + 2t), y], strand2 = [R cos(4πy + π + 2t), y], base_rung = line(s1, s2) Pupillary Sphincter & Fractal Collagen Meshwork
pupil_r = R * (0.28 + 0.12*sin(1.5t)), trabecula = quadCurve(pupil, furrow, limbus) Rankine Combined Vortex Dynamics & Updraft Physics
v_theta = speed / (0.3 + r*0.7), R_funnel = 20 + z^2.2 * 170, sway = sin(1.5t + 3z)*40z Capillary Crown Elevation & Rayleigh-Plateau Jet
crown_h = sin(age * π) * 110, jet_h = sin(jetAge * π) * 160, drop_y += vy*dt + 0.5*g*dt^2 Terminal Velocity Vectors & Impact Ripples
y += speed * dt, x += speed * sin(wind) * dt, ripple = ellipse(x, y, r, 0.35r) * exp(-γt) Brownian Drift Flutter & Parallax Crystals
drift = sin(phase)*1.2 + wind*r*0.8, fy += speed*dt, crystallite = 6_arm_dendrite(r) Hexagonal Dendritic Stefan Phase Freezing
main_spine = L*(0.3 + 0.7*growth), prong = spine_pos + [cos(±π/3)*len, sin(±π/3)*len] Bathypelagic Esca Photophore & Needle Jaw Array
esca = root + [85 + sin(2.5t)*22, -95 + cos(2t)*16], glow = radialGradient(esca, 12 * (1 + 0.3*sin(4t))) Colonial Zooid Helical Chain & Bioluminescent Net
stem = [s*L + sin(1.2t + 4s)*25, sin(4πs + 0.8t)*R], tentilla = [stem.x + sin(2.5t - 6u)*15u, stem.y + u*H] Metachronal Ctenes & Rainbow Light Diffraction
ctene_wave = sin(4t - 8s + 0.5r), hue_diffract = (360s + wave*40) % 360 Velvety Webbed Cloak & Arm Tip Photophores
web_arch = quadCurve(armTip_a, midPt, armTip_next), photophore = circle(tip, 3.5*(1 + 0.3*sin(4t + a))) Ear-Fin Flapping Kinematics & Cirrate Skirt
ear_flap = bezierCurve(root, earCurl*15, earTip + earFlap*26), skirt = quadCurve(arm_prev, midPt - 10, arm_cur) Distensible Pelican Jaw & Luminous Whip-Tail
pouch = bezierCurve(top_jaw, 95 + 85*pulse, -10 + 110*pulse, tail_root), tail_organ = radialGradient(tip, 24*pulse) Transparent Cranial Shield & Tubular Green Eyes
dome = ellipse(35, -25, 48, 34), tubular_eye = rotate(-π/2 + sin(1.5t)*0.35, green_lens) Gymnosome Parapodia Wings & Visceral Core
wing = bezierCurve(root, wingCurl*18, wingTip + wingWave*28), visc_core = radialGradient(5, 2, 22) Benthic Fin Stilts & Current Sensing
stilt_fin = quadCurve(pelvic_root, groundContact), prey_sensor = bezierCurve(pectoral_root, wave_tips) 10-Joint Chebyshev Linkage Deep Sea Stride
knee = coxa + [75*reach, -80*reach + lift], tip = elbow + [35*reach + groundReach, 110*reach] Prehensile Tail Spiral & Foliaceous Camouflage
tail = tail_root + [35 - cos(θ)*r, 25 + sin(θ)*r], r = 55 * exp(-0.45*θ), leaf_sway = sin(2.5t + phase)*14 Cephalofoil Hydrodynamics & Serpentine Swimming Wave
spine_wave = (x/L)^1.6 * 36 * sin(3.2t - 4*(x/L)), head_t = quadraticCurve(-45, 0, -15, headSpan) Schrödinger Wavefunction Probability Density Cloud & Spherical Harmonics
P = Math.pow(r*n, l) * Math.exp(-r*2) * Math.abs(Y_lm(theta, phi)) Non-Linear Dynamical Systems & Butterfly Chaos Theory
dx=s*(y-x)*dt; dy=(x*(r-z)-y)*dt; dz=(x*y-b*z)*dt; Lagrangian Mechanics & Chaotic Phase Space Orbit
alpha1 = num1(th1,th2,w1,w2)/den1; alpha2 = num2(th1,th2,w1,w2)/den2; Complex Phasor Harmonic Decomposition & Spectrum Analyzer
z(t) = sum(c_k * exp(i * k * omega * t)) Orthogonal E & B Vector Fields & Poynting Energy Flow
E(z,t) = E_0 sin(kz - wt) j_hat; B(z,t) = B_0 sin(kz - wt) k_hat; Einstein Field Equations & Gravitational Lensing Deflection
z(r) = 2 * Math.sqrt(rs * (r - rs)); defAngle = (4 * GM) / (c^2 * b);