···11+Copyright 2024 flo-bit
22+33+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44+55+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
66+77+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+65
Readme.md
···11+# Text effect: Fluid Simulation
22+33+
44+55+Inspired by the current (Jan 2024) version of [the lumalabs homepage](https://lumalabs.ai/) (obviously, their effect looks *way* better, than my quick and dirty version):
66+77+
88+99+Adjusted version of this awesome [WebGL Fluid Simulation](https://github.com/PavelDoGreat/WebGL-Fluid-Simulation).
1010+1111+## Usage
1212+1313+- Add `script.js` and `LDR_LLL1_0.png` to your project
1414+1515+- Add this to your html
1616+1717+```html
1818+ <div id="canvasContainer">
1919+ <canvas></canvas>
2020+ <canvas id="maskCanvas"> </canvas>
2121+ </div>
2222+2323+ <script src="./script.js"></script>
2424+```
2525+2626+- Add this styling
2727+2828+```css
2929+ html,
3030+ body {
3131+ overflow: hidden;
3232+ background-color: #000;
3333+ }
3434+3535+ body {
3636+ margin: 0;
3737+ }
3838+3939+ #canvasContainer {
4040+ position: relative;
4141+ width: 100vw;
4242+ height: 100vh;
4343+ }
4444+4545+ canvas {
4646+ width: 100%;
4747+ height: 100%;
4848+ position: absolute;
4949+ }
5050+```
5151+5252+5353+## License
5454+5555+MIT License
5656+5757+```
5858+Copyright 2024 flo-bit
5959+6060+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6161+6262+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6363+6464+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6565+```