WebGL-Fluid-Simulation
WebGL-Fluid-Simulation copied to clipboard
Adding background with transparent feauture
Is it possible to add a picture to the background of this? If so could someone help me do so. I don't know much code and I'm currently using this with lively wallpaper
set
TRANSPARENT: true;
comment the lines:
//if (target == null && config.TRANSPARENT)
//drawCheckerboard(target);
now you can set the canvas background image with CSS! ;)
canvas {
background-image: url("background.png");
background-size: 100% 100%;
}
I'm not sure how to edit the css while using this with lively. I'm sorry for being nooby I've never really edited htmls or anything close to this
Give https://github.com/cloydlau/webgl-fluid a try.