Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add fluid-simulationImport the component
Import the component into your Svelte file:
import { FluidSimulation } from "$lib/motion-core";import { FluidSimulation } from "$lib/motion-core";Usage
Props
FluidSimulation
| Prop | Type | Default |
|---|---|---|
dissipation | number | 0.96 |
pointerSize | number | 0.005 |
color | THREE.ColorRepresentation | "#ff6900" |
velocityDissipation | number | 0.96 |
pressureIterations | number | 10 |
class | string | "" |