This repository now runs a pinned copy of PavelDoGreat/WebGL-Fluid-Simulation, based on commit:
a2d292931f19d9b3b9f564e23e6c32729d2121c3
The runtime is app-only (no library API). It uses the original simulation logic and the original dat.GUI control set.
script.jsfrom upstream (with only minimal removals listed below)dat.gui.min.jsfrom upstreamLDR_LLL1_0.pngfrom upstreamassets/paper-sample-0018.webp(Paper sample image for halftone comparisons)- Fullscreen canvas entrypoint (
index.html)
- Promo popup and related assets/handlers
- External social/app buttons in GUI
- Google Analytics snippets and
ga(...)calls
These removals do not change fluid simulation parameters, solver flow, keyboard controls, or GUI fluid settings.
P: toggle pause (PAUSED)Space: random splats- GUI controls include:
DYE_RESOLUTION,SIM_RESOLUTIONDENSITY_DISSIPATION,VELOCITY_DISSIPATION,PRESSURE,CURL,SPLAT_RADIUSSHADING,COLORFUL,PAUSEDBloomfolder (BLOOM,BLOOM_INTENSITY,BLOOM_THRESHOLD)Sunraysfolder (SUNRAYS,SUNRAYS_WEIGHT)Halftonefolder:enabledsource(fluid,sample)preset(Custom,Default,LED screen,Mosaic,Round and square)colorBack,colorFrontoriginalColors,type,inverted,gridsize,radius,contrastgrainMixer,grainOverlay,grainSizescale,fit- legacy aliases (
HALFTONE_*) still map to new keys for backward compatibility
ASCIIfolder:enabledmode(mono,color)depth(2..16)chars,inverted,sizeforeground,background
Capturefolder (BACK_COLOR,TRANSPARENT, screenshot)
ASCII and Halftone are mutually exclusive: enabling one disables the other.
Capture keeps exporting the raw fluid render (without ASCII/halftone passes).
source=sample uses assets/paper-sample-0018.webp for direct visual comparison with the Paper reference.
npm install
npm run dev
npm run build
npm run preview