A Simple Javascript library that use image data to create a small interactive particles network.
🏠 Homepage
✨ Demo
Create a canvas in your html document e.g
<!DOCTYPE html>
<html>
<head>
<title>Interactive Image Particles</title>
<style type="text/css">
canvas{
min-width: 100vw;
height: 100vh;
position: fixed;
}
</style>
</head>
<body>
<canvas id="canvas"></canvas>
</p>
</body>
</html>
Include the library in the document e.g
<script type="text/javascript" src="https://res.cloudinary.com/ossamarafique/raw/upload/v1533889440/imageparticles.js"></script>
Initialize the process with:
<script type="text/javascript">
ImageParticles.initialize(Parameters Here);
</script>
- Canvas ID (Compulsory)
- Image Data (Compulsory)
- Density (Optional, Default Value is 14)
- Distance Between Particles (Optional, Default value is 28)
- Base Radius (Optional, Default Value is 2)
- Max Line Thickness (Optional, Default value is 1)
- Reaction Sensitivity (Optional, Default Value is 2)
- Line Thickness (Optional, Default value is 1)
For More Details Please refer to index.html file.
👤 Ossama Rafique
- Website: https://www.ossamarafique.com
- Twitter: @OssamaRafique
- Github: @OssamaRafique
- LinkedIn: @OssamaRafique
- Buy me a Coffee: https://ko-fi.com/ossamarafique
Give a ⭐️ if this project helped you!