This commit is contained in:
2026-08-21 19:28:21 -07:00
parent 4af87f4f9c
commit acf97ae05d
15 changed files with 82 additions and 92 deletions

View File

@@ -1,7 +1,7 @@
import { prefersReducedMotion } from '../utils/dom.js';
import { smoothstep, diffuse, project, advect } from './fluid-solver.js';
const CELL_SIZE = 24;
const CELL_SIZE = 28;
const FONT_SIZE = 11;
const DT = 1 / 30;
const FADE_RATE = 0.6;
@@ -9,8 +9,8 @@ const MAX_ALPHA = 0.85;
const ADVECT_SCALE = 0.5;
const SPLASH_RADIUS_PX = 28;
const SPLASH_FORCE = 0.5;
const DIFFUSION_ITERATIONS = 3;
const PROJECT_ITERATIONS = 4;
const DIFFUSION_ITERATIONS = 2;
const PROJECT_ITERATIONS = 3;
const VELOCITY_DAMP = 0.1;
const DYE_DAMP = 0.1;
const TRAIL_LIFETIME_MS = 184;