feat(backgrounds): add snowfall background

This commit is contained in:
Boris Kovalskii
2026-06-11 10:13:39 +10:00
parent 1d00ca97e5
commit e3dbc4e663
9 changed files with 168 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ function reduceMobileSettings(settings: Record<string, unknown>): Record<string,
reduced.particleCount = Math.max(20, Math.floor(reduced.particleCount / 4));
if (typeof reduced.particleDensity === 'number')
reduced.particleDensity = Math.max(50, Math.floor(reduced.particleDensity / 4));
if (typeof reduced.density === 'number')
reduced.density = Math.max(10, Math.floor(reduced.density / 2));
if (typeof reduced.number === 'number')
reduced.number = Math.max(5, Math.floor(reduced.number / 4));
if ('interactive' in reduced) reduced.interactive = false;