forked from vyla-entertainment/home-frontend
revamped
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user