An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Triangulation Drawable
[![Apache 2.0 License](https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0.html) [![Release](https://jitpack.io/v/nekocode/TriangulationDrawable.svg)](https://jitpack.io/#nekocode/TriangulationDrawable)

The code of triangulation animation is ported from the **[SVG triangulation (JavaScript)](https://codepen.io/zessx/pen/ZGBMXZ)**.

![Screenshot](img/screenshot.gif)

(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()
```