Pulse flood fill

I started a journey recently wanting to replicate the Android Material Design flood fill effect seen when a button is tapped. This was a journey of learning and discovery and Corona’s own Rob Miracle saved the day.

So, here is some little code to make buttons really pop, without the use of animated textures, snapshots, captures or anything more than a few display objects and a gradient fill:

Ah so that’s what you were doing with those gradient fill questions. Looks cool! :slight_smile:

Yep. It was really confusing. Got it sorted enough to handle this neat effect though. Still not clear on why the fill appears to bleed the backing colour through so much and in such an odd way. Would love some real clarity from those in the know as to what is really going on with each filter.

Glad you got it working well enough for your effect.

Rob

Ah so that’s what you were doing with those gradient fill questions. Looks cool! :slight_smile:

Yep. It was really confusing. Got it sorted enough to handle this neat effect though. Still not clear on why the fill appears to bleed the backing colour through so much and in such an odd way. Would love some real clarity from those in the know as to what is really going on with each filter.

Glad you got it working well enough for your effect.

Rob