Android Graphics Utilities / it.czerwinski.android.graphics / AdvancedPath
AdvancedPath
open class AdvancedPath :
Path
An extension of the Path
class, providing means of building advanced shapes.
Constructors
<init> | An extension of the Path class, providing means of building advanced shapes.AdvancedPath() |
Functions
addCircleSector | Adds a closed circle sector contour to the path.open fun addCircleSector(cx: Float = 0f, cy: Float = 0f, radius: Float , startAngle: Float , sweepAngle: Float , inset: Float = 0f): Unit |
addRingSector | Adds a closed ring sector (annulus sector) contour to the path.open fun addRingSector(cx: Float = 0f, cy: Float = 0f, radius: Float , startAngle: Float , sweepAngle: Float , thickness: Float , inset: Float = 0f): Unit |
arcTo | Appends the specified arc of a circle to the path as a new contour.open fun arcTo(cx: Float = 0f, cy: Float = 0f, radius: Float , startAngle: Float , sweepAngle: Float , forceMoveTo: Boolean = false): Unit |
Extension Functions
set | Clear any lines and curves from this path, making it empty, and applies a new path defined in init function.fun <T : Path > T.set(close: Boolean = false, init: T.() -> Unit ): Unit |