easyreveal / com.jem.easyreveal.clippathproviders / RandomLineClipPathProvider

RandomLineClipPathProvider

class RandomLineClipPathProvider : ClipPathProvider

ClipPathProvider which provides path which consists of random strips of rectangles (AKA, lines).

Types

Name Summary
LineOrientation enum class LineOrientation
Orientation of the rectangular strips.

Constructors

Name Summary
<init> RandomLineClipPathProvider(lineOrientation: RandomLineClipPathProvider.LineOrientation = LineOrientation.HORIZONTAL)RandomLineClipPathProvider()
ClipPathProvider which provides path which consists of random strips of rectangles (AKA, lines).

Properties

Name Summary
lineOrientation var lineOrientation: RandomLineClipPathProvider.LineOrientation
Orientation of the reveal animation lines.
randomLineArrayList var randomLineArrayList: ArrayList<Int>
ArrayList of random integers in the range 1..100

Inherited Properties

Name Summary
op var op: Op
Region.Op variable that is used in android.graphics.Canvas.clipPath in the EasyRevealLayouts
path var path: Path
Path 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): Path
Generate the Path for the percent value to be applied in the view.