Stay organized with collections
Save and categorize content based on your preferences.
DiscretePathEffect
open class DiscretePathEffect : PathEffect
Summary
Public constructors |
Chop the path into lines of segmentLength, randomly deviating from the original path by deviation.
|
Public constructors
DiscretePathEffect
DiscretePathEffect(
segmentLength: Float,
deviation: Float)
Chop the path into lines of segmentLength, randomly deviating from the original path by deviation.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# DiscretePathEffect\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDiscretePathEffect\n==================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/graphics/DiscretePathEffect \"View this page in Java\") \n\n```\nopen class DiscretePathEffect : PathEffect\n```\n\n|---|---|------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [android.graphics.PathEffect](/reference/kotlin/android/graphics/PathEffect) ||\n| | ↳ | [android.graphics.DiscretePathEffect](#) |\n\nSummary\n-------\n\n| Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [DiscretePathEffect](#DiscretePathEffect(kotlin.Float,%20kotlin.Float))`(`segmentLength:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `deviation:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` Chop the path into lines of segmentLength, randomly deviating from the original path by deviation. |\n\n| Inherited functions ||\n|---|---|\n| From class [PathEffect](/reference/kotlin/android/graphics/PathEffect) |------------------------------------------------------------------------------|---------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [finalize](/reference/kotlin/android/graphics/PathEffect#finalize())`()` \u003cbr /\u003e | ||\n\nPublic constructors\n-------------------\n\n### DiscretePathEffect\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nDiscretePathEffect(\n segmentLength: Float, \n deviation: Float)\n```\n\nChop the path into lines of segmentLength, randomly deviating from the original path by deviation."]]