import React from 'react'; interface CellPlacement { motif: 'cell-1-1' | 'cell-0-1' | 'cell-1-2' | 'cell-0-2-pair' | 'cell-0-2-a' | 'cell-0-2-b'; x: number; y: number; rotate: number; scale: number; opacity: number; } const TILE_SIZE = 920; const WRAP_MARGIN = 115; /** * Poisson-spaced organic microscopy field using ONLY the 4 living biological cells * from the TabBioMed 3x3 logo (excluding Col 0 and Row 2 tabular squares). * Every cell near a tile boundary wraps seamlessly across 920x920 edges. */ const PLACEMENTS: CellPlacement[] = [ { motif: 'cell-1-2', x: 241.5, y: 47.2, rotate: 17, scale: 0.5, opacity: 0.79 }, { motif: 'cell-0-1', x: 744.6, y: 212.2, rotate: -31, scale: 0.54, opacity: 0.84 }, { motif: 'cell-0-1', x: 231.9, y: 775.8, rotate: 150, scale: 0.57, opacity: 0.81 }, { motif: 'cell-0-2-pair', x: 900.0, y: 70.6, rotate: 69, scale: 0.58, opacity: 0.91 }, { motif: 'cell-0-1', x: 898.3, y: 859.9, rotate: 127, scale: 0.51, opacity: 0.81 }, { motif: 'cell-0-1', x: 387.3, y: 561.4, rotate: -56, scale: 0.49, opacity: 0.85 }, { motif: 'cell-1-2', x: 571.1, y: 767.5, rotate: 147, scale: 0.57, opacity: 0.86 }, { motif: 'cell-1-1', x: 744.6, y: 442.9, rotate: -137, scale: 0.54, opacity: 0.9 }, { motif: 'cell-0-1', x: 112.6, y: 15.3, rotate: -85, scale: 0.49, opacity: 0.82 }, { motif: 'cell-0-2-b', x: 571.7, y: 438.7, rotate: 124, scale: 0.61, opacity: 0.82 }, { motif: 'cell-0-2-pair', x: 455.7, y: 163.2, rotate: 65, scale: 0.55, opacity: 0.94 }, { motif: 'cell-0-2-pair', x: 16.9, y: 309.4, rotate: 117, scale: 0.53, opacity: 0.82 }, { motif: 'cell-1-2', x: 593.1, y: 292.8, rotate: -159, scale: 0.52, opacity: 0.82 }, { motif: 'cell-1-2', x: 243.1, y: 229.8, rotate: -106, scale: 0.53, opacity: 0.95 }, { motif: 'cell-0-2-pair', x: 297.2, y: 401.1, rotate: -17, scale: 0.49, opacity: 0.95 }, { motif: 'cell-1-2', x: 202.8, y: 548.7, rotate: -90, scale: 0.49, opacity: 0.85 }, { motif: 'cell-0-1', x: 94.9, y: 196.5, rotate: 7, scale: 0.57, opacity: 0.8 }, { motif: 'cell-0-2-pair', x: 638.6, y: 43.5, rotate: 79, scale: 0.49, opacity: 0.91 }, { motif: 'cell-0-2-pair', x: 140.8, y: 370.0, rotate: -22, scale: 0.57, opacity: 0.84 }, { motif: 'cell-0-1', x: 602.8, y: 621.2, rotate: 3, scale: 0.51, opacity: 0.94 }, { motif: 'cell-0-1', x: 99.9, y: 707.5, rotate: 112, scale: 0.56, opacity: 0.96 }, { motif: 'cell-0-1', x: 737.7, y: 758.4, rotate: -27, scale: 0.51, opacity: 0.83 }, { motif: 'cell-1-2', x: 32.6, y: 568.3, rotate: -99, scale: 0.56, opacity: 0.84 }, { motif: 'cell-1-1', x: 463.9, y: 25.4, rotate: 74, scale: 0.54, opacity: 0.83 }, { motif: 'cell-1-2', x: 415.4, y: 410.1, rotate: 133, scale: 0.51, opacity: 0.92 }, { motif: 'cell-1-1', x: 807.2, y: 663.4, rotate: -133, scale: 0.5, opacity: 0.88 }, { motif: 'cell-1-2', x: 451.2, y: 818.4, rotate: -149, scale: 0.49, opacity: 0.91 }, { motif: 'cell-0-2-pair', x: 465.7, y: 693.1, rotate: -68, scale: 0.56, opacity: 0.87 }, { motif: 'cell-0-2-a', x: 737.2, y: 327.3, rotate: 4, scale: 0.55, opacity: 0.9 }, { motif: 'cell-0-1', x: 391.8, y: 261.4, rotate: 121, scale: 0.5, opacity: 0.95 }, { motif: 'cell-0-1', x: 280.7, y: 669.4, rotate: 36, scale: 0.52, opacity: 0.8 }, { motif: 'cell-0-1', x: 26.0, y: 433.8, rotate: 81, scale: 0.58, opacity: 0.89 }, { motif: 'cell-0-2-pair', x: 871.9, y: 205.5, rotate: 166, scale: 0.55, opacity: 0.88 }, { motif: 'cell-1-1', x: 621.6, y: 163.5, rotate: 29, scale: 0.53, opacity: 0.82 }, { motif: 'cell-0-1', x: 727.9, y: 570.8, rotate: -28, scale: 0.52, opacity: 0.96 }, { motif: 'cell-0-1', x: 766.1, y: 20.3, rotate: 112, scale: 0.57, opacity: 0.8 }, { motif: 'cell-1-2', x: 337.5, y: 873.0, rotate: 147, scale: 0.53, opacity: 0.81 }, { motif: 'cell-0-1', x: 353.8, y: 97.6, rotate: 132, scale: 0.54, opacity: 0.82 }, { motif: 'cell-0-2-b', x: 842.0, y: 517.9, rotate: 65, scale: 0.58, opacity: 0.87 }, { motif: 'cell-0-2-a', x: 511.2, y: 545.9, rotate: -59, scale: 0.61, opacity: 0.96 }, { motif: 'cell-1-1', x: 891.9, y: 742.4, rotate: 80, scale: 0.55, opacity: 0.83 }, { motif: 'cell-1-1', x: 674.5, y: 854.9, rotate: 75, scale: 0.54, opacity: 0.94 }, { motif: 'cell-1-2', x: 842.3, y: 378.3, rotate: 49, scale: 0.57, opacity: 0.94 }, { motif: 'cell-1-2', x: 89.2, y: 822.6, rotate: -62, scale: 0.53, opacity: 0.9 }, { motif: 'cell-1-2', x: 354.9, y: 756.7, rotate: -103, scale: 0.54, opacity: 0.84 }, ]; function getWrappedPositions(x: number, y: number): Array<[number, number]> { const xs = [x]; const ys = [y]; if (x < WRAP_MARGIN) xs.push(x + TILE_SIZE); if (x > TILE_SIZE - WRAP_MARGIN) xs.push(x - TILE_SIZE); if (y < WRAP_MARGIN) ys.push(y + TILE_SIZE); if (y > TILE_SIZE - WRAP_MARGIN) ys.push(y - TILE_SIZE); const pairs: Array<[number, number]> = []; for (const px of xs) { for (const py of ys) { pairs.push([px, py]); } } return pairs; } export const CellPatternBackground: React.FC = () => { return ( ); };