Trilateral takes draw commands like quadTo and draws them using Haxe technologies, essentially it's just a tool to convert lines and curves into triangles for rendering with a shader, being Haxe language based it can obviously be used as c++ on mobile and on the web as WebGL.
justTriangles was the first iteration.
I first tested the concept of drawing with triangles using Haxe flash swf. Then implemented in haxe WebGL, cross platform OpenFL/NME and Kha, creating code to parse SVG string path data or drawing with lineTo, moveTo, quadTo, curveTo, quadThru.
Created specific commands for drawing basic shapes
Simple 2D Kha demo.
Restructuring, Trilateral was born. ( heaps toolkit render ).
Using TrilateraXtra to for toolkit specific code and TrilateralBazzar for examples.
I improved the svg data path support adding Ellipses.
Adding images support so I could create my canvas jigsaw in WebGL or c++ Kha.
Experimented with some FXG support
Supported an approach to gradients similar to the image approach of uv, where shape is plotted and then UV's applied.
And I experimented with animating seven segment LED's and dot matrix displays.
Added some support for extrusion of shapes this is using modified armory Iron Kha haxe example, this version shows debug triangles.
Added support for rendering with extrusion hxTrueType parser.
More recently I have totally refactored the whole code base creating a geom library and splitting up and decoupling the parts of Trilateral. Using Module Static functions and hopefully clean and simple code Trilateral3 was born. Image and gradient support has not yet been re-added.
Trilateral3 provides decoupling so that the data structure for holding triangles ( now nominanlly a interlaced Float32Array ) can be other structures.
Currently Trilateral has 2.5D WebGL examples, color and position animations
svg path width along the length color change or width change examples, and some Lime and Heap examples, trilateral3 has mostly been tested against web but should work in C++ on mobile. Kha support will be added on haxe 4.2 release.
You can find documentation on the latest version:
https://nanjizal.github.io/trilateral3/pages/
Project is still work in progress.