Set the canvas width and height using options
adityapurwa opened this issue · comments
Current: The code inside particle is to create a canvas with 100% width and height.
Expected: Allow to use custom value for the canvas width and height.
I wanted to create a small-bottom-only particle background, this is why i need custom height values. I'd gladly work on it and create pull request if needed.
You can wrap your canvas. Particles.js is then using the dimensions of the parent element to render the canvas. Check this if you need a example: https://jsfiddle.net/m97g98sx/1/