Low Ploy Triangulation Animation on Android.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example Rename directory Jun 20, 2017
gradle/wrapper Initial commit Jun 20, 2017
img Update screenshot Jun 20, 2017
lib-triangulation Fix precision Jun 21, 2017
.gitignore Initial commit Jun 20, 2017
LICENSE Add license file Jun 20, 2017
README.md Update README.md Jun 22, 2017
build.gradle Initial commit Jun 20, 2017
gradle.properties Initial commit Jun 20, 2017
gradlew Initial commit Jun 20, 2017
gradlew.bat Initial commit Jun 20, 2017
settings.gradle Rename directory Jun 20, 2017

README.md

Triangulation Drawable

Apache 2.0 License Release

The code of triangulation animation is ported from the SVG triangulation (JavaScript).

Screenshot

(Gif Picture)

Getting started

In your build.gradle:

repositories {
    maven { url "https://jitpack.io" }
}
dependencies {
    compile "com.github.nekocode:TriangulationDrawable:${lastest-version}"
}

Obtain an TriangulationDrawable with a bacground color parameter.

final TriangulationDrawable drawable = new TriangulationDrawable(0xFFEF0E39);
findViewById(android.R.id.content).setBackground(drawable);

And then call the start() method for starting the triangulation animation.

drawable.start()