easyreveal / com.jem.easyreveal.clippathproviders / StarClipPathProvider

StarClipPathProvider

class StarClipPathProvider : ClipPathProvider

ClipPathProvider which provides a Star shaped path.

Constructors

Name Summary
<init> StarClipPathProvider(numberOfPoints: Int)StarClipPathProvider()
ClipPathProvider which provides a Star shaped path.

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.
setNumberOfPoints fun setNumberOfPoints(numberOfPoints: Int): Unit
Set the number of points in the star.