https://github.com/nekocode/triangulationdrawable
Low Ploy Triangulation Animation on Android.
https://github.com/nekocode/triangulationdrawable
android graphics widget
Last synced: 9 months ago
JSON representation
Low Ploy Triangulation Animation on Android.
- Host: GitHub
- URL: https://github.com/nekocode/triangulationdrawable
- Owner: nekocode
- License: apache-2.0
- Created: 2017-06-20T06:47:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-22T04:36:56.000Z (over 8 years ago)
- Last Synced: 2025-03-20T17:23:30.708Z (9 months ago)
- Topics: android, graphics, widget
- Language: Java
- Homepage:
- Size: 2.35 MB
- Stars: 255
- Watchers: 4
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Triangulation Drawable
[](http://www.apache.org/licenses/LICENSE-2.0.html) [](https://jitpack.io/#nekocode/TriangulationDrawable)
The code of triangulation animation is ported from the **[SVG triangulation (JavaScript)](https://codepen.io/zessx/pen/ZGBMXZ)**.

(Gif Picture)
## Getting started
In your `build.gradle`:
```gradle
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
compile "com.github.nekocode:TriangulationDrawable:${lastest-version}"
}
```
Obtain an `TriangulationDrawable` with a bacground color parameter.
```java
final TriangulationDrawable drawable = new TriangulationDrawable(0xFFEF0E39);
findViewById(android.R.id.content).setBackground(drawable);
```
And then call the `start()` method for starting the triangulation animation.
```java
drawable.start()
```