WebGL-Fluid-Simulation icon indicating copy to clipboard operation
WebGL-Fluid-Simulation copied to clipboard

Possible To Use As A Website Background?

Open John-Lea opened this issue 5 years ago • 5 comments

Is it possible to use this code as a background/backdrop for a website?

John-Lea avatar May 21 '19 15:05 John-Lea

sure you can use it

PavelDoGreat avatar May 21 '19 18:05 PavelDoGreat

is there anything special I need to do in order to do so? or do I just add any of my website code into the index.html?

John-Lea avatar May 21 '19 18:05 John-Lea

I think you'd have to delete analytics code (every ga function calls) and you could also delete gui if you want, just remove startGUI function. You also need to have canvas tag in index.html

PavelDoGreat avatar May 22 '19 14:05 PavelDoGreat

I made an Wallpaper Engine version of this project: https://github.com/Delivator/WebGL-Fluid-Simulation

Delivator avatar Jun 23 '19 13:06 Delivator

I made ES module version of this project:

import WebglFluid from 'webgl-fluid'

WebglFluid(document.querySelector('canvas'))

cloydlau avatar Nov 14 '20 12:11 cloydlau