Skip to content

Minimalistic generation of random colourful particles that move 😛

Notifications You must be signed in to change notification settings

CodHeK/porticle.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Porticle.js

Minimalistic generation of random colourful particles that move (Can be used as a dynamic background) 😛

See how it looks : https://codhek.github.io/porticle.js/

Usage

Clone or Zip the repository, include the porticle.js in your html header along with the file porticle.css.

<script src="porticle.js"></script>
<link rel="stylesheet" href="porticle.css">

Initialization

function porticle(numParts, numSize, type) {

}
  • numParts : Number of bubbles
  • numSize : maximum size of any bubble
  • type : Includes 3 modes, ["mono", "color", "mix"]

<html>
  <head>
    <title>Porticle.js</title>
    <script src="porticle.js"></script>
    <link rel="stylesheet" href="porticle.css">
  </head>
  <body>
  </body>
  <script>
    var porticle = porticle(100, 30, "mix");
  </script>
</html>

Modes

mono :

Monochromatic color scheme, shades between white and black. alt

color :

Generated bubbles of random colors. alt

mix :

Mix of the above two modes, has shades between black & white mixed with colorful bubbles. alt

About

Minimalistic generation of random colourful particles that move 😛

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published