Lightning

About Lightning

Type: Gideros class
License: BSD License
Supported platforms:

       

Categories:
  • Visual Effects

Gideros Lightning object draws a randomly generated lightning with glow effect from x and y coordinates, to other x and y coordinates.

You can also specify lightning bolt color, width, lightning glow color, width, detalization level and displacement offsets

This object is adapted from https://bitbucket.org/ndoss and wrapped into Gideros class for reusability.

Package contains lightning.lua and example Gideros application project.

Code example:

--initilize lightning
local bolt = Lightning.new()
stage:addChild(bolt)
				

Lightning video