Background Pattern Generator
Generate custom seamless background patterns as SVG or PNG. 15+ pattern types, full color control, live preview, and instant download.
About
Repeating background patterns require precise geometric tessellation. A single-pixel misalignment in the unit cell produces visible seams when tiled across large surfaces. This generator computes exact vertex coordinates for 15 pattern types using trigonometric placement. Hexagonal grids use √3 row offsets. Sinusoidal waves evaluate y = A ⋅ sin(ωx + φ) per column. All output tiles perfectly at any scale. Export as SVG for resolution-independent CSS backgrounds or PNG for direct use in design tools.
Limitation: raster PNG export is bound by canvas pixel limits (browser-dependent, typically 16384px max per axis). SVG output has no such constraint. Pro tip: for web use, keep tile dimensions under 200px to minimize HTTP payload when inlined as a data URI.
Formulas
Each pattern is constructed by computing element positions within a unit tile of width W and height H. The tile repeats infinitely in both axes.
Dot grid placement for row i, column j:
x = j ⋅ s + (i mod 2) ⋅ s2y = i ⋅ s
Hexagon vertex k (0≤k<6):
xk = cx + r ⋅ cos(2πk6)yk = cy + r ⋅ sin(2πk6)
Wave curve:
y(x) = A ⋅ sin(2πT ⋅ x + φ)Star vertex k (alternating inner/outer radius):
rk =Where s = spacing, r = radius, A = amplitude, T = period, φ = phase offset, R = outer star radius, cx,cy = center coordinates.
Reference Data
| Pattern | Geometry | Tile Formula | Best Use Case |
|---|---|---|---|
| Dots | Circle grid | Spacing = s, radius = r | Subtle textures, card backgrounds |
| Lines | Parallel strokes | Gap = g, angle = θ | Notebook styles, ruled surfaces |
| Cross-hatch | Perpendicular lines | Two line sets at 90° | Engineering drawings, sketch effects |
| Waves | Sinusoidal curves | Asin(ωx) | Organic, water-themed designs |
| Chevrons | V-shaped zigzag | Slope ±m inversion | Fashion, tribal patterns |
| Hexagons | Honeycomb | Row offset = √32s | Tech, gaming, modern UI |
| Triangles | Equilateral tessellation | Height = √32a | Geometric art, retro designs |
| Diamonds | Rotated squares | 45° rotation transform | Luxury, playing card motifs |
| Crosses | Plus signs at nodes | Arm length = l | Medical, Swiss-style graphics |
| Circles | Concentric rings | Radius step = Δr | Radar, ripple effects |
| Polka | Offset dot grid | Even rows offset s2 | Vintage, playful designs |
| Zigzag | Continuous V-line | Amplitude = A, period = T | Borders, ribbon patterns |
| Plaid | Overlapping stripes | H + V stripes, α blend | Flannel, tartan, textile |
| Stars | 5-point at nodes | 5 vertices at 2π5 intervals | Festive, decorative backgrounds |
| Brick | Offset rectangles | Odd rows offset w2 | Architecture, wall textures |