Results 60 comments of Cloyd Lau

Simulation will crash if mouse is moving in the begining. Which can be solved by delaying the mousemove event listener. It's worth making it configurable: ```js import WebglFuild from 'webgl-fluid'...

It seems the 'TRANSPARENT' parameter is not real transparent but a grid picture instead, the previous reply will do the job, I optimized the parameter, for those who see this...

I added ES module for this amazing project, you can make the background white by this: ```js import WebglFluid from 'webgl-fluid' WebglFluid(document.querySelector('canvas'), { BACK_COLOR: { r: 255, g: 255, b:...

```js import WebglFluid from 'webgl-fluid' ``` transparent: ```js WebglFluid(document.querySelector('canvas'), { TRANSPARENT: true, }) ``` white: ```js WebglFluid(document.querySelector('canvas'), { BACK_COLOR: { r: 255, g: 255, b: 255 }, }) ```

Hello, you can try this: ```js import WebglFluid from 'webgl-fluid' WebglFluid(document.querySelector('canvas'), { TRIGGER: 'hover', // Can be change to 'click' }) ```

This will do it: css ```css canvas { width: 100vw; height: 100vh; background-image: url("back.png"); background-size: 100% 100%; } ``` js ```js import WebglFluid from 'webgl-fluid' WebglFluid(document.querySelector('canvas'), { TRANSPARENT: true })...

I added ES module for this amazing project, it's Hover to activate by default, can also be Click: ```js import WebglFluid from 'webgl-fluid' WebglFluid(document.querySelector('canvas'), { TRIGGER: 'hover', // Can be...

@rckychen Hello, here's the example if you mean using it directly in the browser: ```html canvas { width: 100vw; height: 100vh; } window['webgl-fluid'].default(document.querySelector('canvas')) ```

@rckychen It does immediately start by default, you can check the document [here](https://github.com/cloydlau/webgl-fluid/blob/master/README.md).