Skip to content

UdaraWanasinghe/android-extended-path

Repository files navigation

android-extended-path

Android graphics path with extended functionalities.

Using

  1. Add the library to your project.
dependencies {
    implementation("com.aureusapps.android:extended-path:1.0.0")
}
  1. Use the ExtendedPath wrapper class.

    This wrapper class can be replaced by your Path class. It records all the operations performed on the Path object and the operations can be converted to a JSON string.

val path = ExtendedPath()
path.moveTo(0f, 0f)
path.lineTo(100f, 100f)
path.close()
val json = path.toJson()
  1. Check path intersection
val path = ExtendedPath()
path.moveTo(0f, 0f)
path.lineTo(9f, 9f)
val doIntersect = path.doIntersect(3f, 3f)

Appreciate my work!

If you find this library useful, please consider buying me a coffee.

Buy Me A Coffee

About

Android graphics path with extended functionalities.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages