easy-proton

Proton is a simple and powerful javascript particle animation engine.

Usage no npm install needed!

<script type="module">
  import easyProton from 'https://cdn.skypack.dev/easy-proton';
</script>

README

easy proton

useage

function createProton({
    rate = 30,
    body,
    life = 1,
    x = 100,
    y = 100,
    canvas,
    color = ["#ff0000", "#ffff00"],
    scale = [1, 0.1],
    alpha = [1, 0],
    v = 2,
    angel = [0, 50]
})