# Creating animated Triangle Patterns

**URL:** <https://discourse.processing.org/t/creating-animated-triangle-patterns/6702>\
**Category:** Libraries\
**Created:** [December 17, 2018, 1:20pm UTC](https://discourse.processing.org/t/creating-animated-triangle-patterns/6702 "2018-12-17T13:20:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [December 19, 2018, 9:10pm UTC](https://discourse.processing.org/t/creating-animated-triangle-patterns/6702/4 "2018-12-19T21:10:30Z")

</div>

You may also be interested in this previous discussion – it provides a solution to triangle coloring using the Mesh library.

> [@Fill a mesh Delaunay object](https://discourse.processing.org/t/fill-a-mesh-delaunay-object/3341/4):
>
> Hi @BrokenCode, I’m not really familiar with Lee Byron’s “mesh” library but here is my two cents: getRegions() only work with Voronoi objects the “Triangulate” library seems more appropriate in your case You just need to: download it [here](http://n.clavaud.free.fr/processing/triangulate/triangulate-20100628.zip) import it in your sketch In setup() put all the points (PVector) you want to triangulate in an array list (let’s call it plist) call the triangulate method on that list: -\> triangles = Triangulate.triangulate(plist) display the triangles wi…

The key method is to use triangulate to get a list of triangles that you can iterate over. Then you just need to store one color per triangle, and you can change the color list to animate your rendering of the mesh.

---

_[View the full topic](https://discourse.processing.org/t/creating-animated-triangle-patterns/6702)._
