Lightning effect: Draw a random lightning bolt on the page

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 526 All time: 51 This week: 4Up
Version License JavaScript version Categories
lightning-effect 1.0BSD License1.0Graphics
Description Author

This object can draw a random lightning bolt on the page.

It can create a canvas on which a glowing random line similar to lightning bolt is drawn within given page boundaries.

The position, color and thickness of the lightning bolt are configurable parameters.

Picture of Arturs Sosins
  Performance   Level  
Name: Arturs Sosins <contact>
Classes: 51 packages by
Country: Latvia Latvia
Age: 35
All time rank: 1
Week rank: 6 Down1 in Latvia Latvia Equal
Innovation award
Innovation award
Nominee: 8x

Winner: 6x

  • lightning_effect.png
  Files folder image Files  
File Role Description
Plain text file lightning.js Class Main class source
Plain text file lightning.packed.js Class Main class packed
Accessible without login Plain text file example.html Example Lightning effect for text
Accessible without login Plain text file mouse_example.html Example Lightning on mouse move
Accessible without login Plain text file simple_example.html Example Simple example

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:51
This week:4Up