easyreveal / com.jem.easyreveal.clippathproviders / WaveClipPathProvider
WaveClipPathProvider
class WaveClipPathProvider : ClipPathProvider
ClipPathProvider which provides Wave shaped paths which are flatter when percent is closer to 0 or 100, and are at max height when closer to 50.
Types
| Name | Summary | 
|---|---|
| Direction | enum class DirectionDirection in which reveal animation is performed.  | 
    
Constructors
| Name | Summary | 
|---|---|
| <init> | WaveClipPathProvider(direction: WaveClipPathProvider.Direction = Direction.BOTTOM_TO_TOP, amplitude: Int = 30, frequency: Int = 45, speed: Int = 20)WaveClipPathProvider()ClipPathProvider which provides Wave shaped paths which are flatter when percent is closer to 0 or 100, and are at max height when closer to 50.  | 
    
Properties
| Name | Summary | 
|---|---|
| amplitude | var amplitude: IntMaximum height of waves.  | 
    
| direction | var direction: WaveClipPathProvider.DirectionWave reveal direction.  | 
    
| frequency | var frequency: IntFrequency of waves, higher frequency == more waves  | 
    
| speed | var speed: IntSpeed at which waves ‘move’.  | 
    
Inherited Properties
| Name | Summary | 
|---|---|
| op | var op: OpRegion.Op variable that is used in android.graphics.Canvas.clipPath in the EasyRevealLayouts  | 
    
| path | var path: PathPath variable that should be used to make the path to be returned in getPath function.  | 
    
Functions
| Name | Summary | 
|---|---|
| getPath | fun getPath(percent: Float, view: View): PathGenerate the Path for the percent value to be applied in the view.  |