Skip to content

A ripple effect is a situation in which, like ripples expand across the water when an object is dropped into it, an effect from an initial state can be followed outwards incrementally.

lequangios/Ripple-Cocos2dx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ripple-Cocos2dx

This library was created by Lars Birkemose on 02/12/11 and edited by guanghui on 7/30/13. Now I have custom it for compatible for both cocos2dx version 2x and version 3x. It work well for iOS 8+ and Android 19+

What is a Ripple effect ?

Ripple effect is a situation in which, like ripples expand across the water when an object is dropped into it, an effect from an initial state can be followed outwards incrementally.

There is really nothing special to the ripple effect, in essence it is just an evaluation of the sombrero function

Sombrero function

A sombrero function (sometimes called besinc function or jinc function) is the 2-dimensional polar coordinate analog of the sinc function, and is so-called because it is shaped like a sombrero hat. This function is frequently used in image processing. It can be defined through the Bessel function of the first kind where :

With Riple Effect just use 2D version of sombrero function and with

Then :

The WebGL version of Ripple effect can see here

How to use this ?

- Init Ripple Sprite :

rippleSprite = pgeRippleSprite::create("your image");

- Init Update function

rippleSprite->update(dt);

About

A ripple effect is a situation in which, like ripples expand across the water when an object is dropped into it, an effect from an initial state can be followed outwards incrementally.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages