Coder Social home page Coder Social logo

ossamarafique / interactive-image-particles-webgl Goto Github PK

View Code? Open in Web Editor NEW
27.0 3.0 6.0 9.54 MB

A Simple Javascript library that use image data to create a small interactive particles network.

Home Page: https://ossamarafique.github.io/Interactive-Image-Particles

License: MIT License

JavaScript 42.54% HTML 57.46%
particles-js particles background image-processing canvas canvas2d dots

interactive-image-particles-webgl's Introduction

Interactive Image Particles Network

Version Version License: MIT Buy Me A Coffee Twitter: OssamaRafique

A Simple Javascript library that use image data to create a small interactive particles network.

Interactive Image Particles Network

๐Ÿ  Homepage

โœจ Demo

How to use

Step 1

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>

Step 2

Include the library in the document e.g

<script type="text/javascript" src="https://res.cloudinary.com/ossamarafique/raw/upload/v1533889440/imageparticles.js"></script>

Step 3

Initialize the process with:

<script type="text/javascript">
  ImageParticles.initialize(Parameters Here);
</script>
List of parameters
  • 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.

Author

๐Ÿ‘ค Ossama Rafique

Show your support

Give a โญ๏ธ if this project helped you!

ko-fi

interactive-image-particles-webgl's People

Contributors

ossamarafique avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

interactive-image-particles-webgl's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.