A samples folder shows XML shapes rendered as pixels in CPU software coded with Haxe language.
Samples that currently work ✓ and samples that need debugging ✗, or are not wired up ⚠.
- Arrow ✗
- Arc ✓
- Curve ⚠
- Ellipse ✓
- [Gradient] ⚠ template sample needed
- Grid ✗
- [GlowLine] ⚠ template sample and pixelimageXY required.
- Line ✗
- NineSlice ⚠ Need to integrate reading format extract32 png with pixelimagXY and reading base 64 embed string.
- Path ⚠ Need to check over path renderer.
- Pattern ⚠ Lightly to be a mix of pattern shapes.
- Picture ⚠ Need to integrate reading format extract32 png with pixelimagXY and reading base 64 embed string.
- Poly ⚠
- Quad ✓
- Quint ✗
- Radial ⚠
- Rectangle ✗
- Rotate ⚠
- Skew ⚠
- SoftEdge ⚠
- Star ⚠ no implementation in pixelimageXY! yet..
- Text ⚠ no implementation in pixelimageXY! yet..
- Thick ⚠
- Triangle ⚠
- Ve ⚠
Currently the examples are setup for the haxe c++ target to create png's.
Initially pixelImageXY was developed in Haxe Javascript target, rendered on a Canvas.
In theory pixelimageXY can be used on any Haxe target/toolkit although transfer of pixels may need implementing in some cases.
triangleGML is just a generic abstract class shell. The generics DRAWTOOL and IMAGETOOL can be implemented by extending the abstact classes with underscore ending names. The TriangleXML_ class needs extending with a get getTriangleGML implementation using a switch statement that returning a shape class from an XML node name. So for instance you can use TriangleGML as a starting point for Canvas implementation.
- https://github.com/nanjizal/triangleGML abstract xml shape parser
- https://github.com/nanjizal/justPath SVG pathData string parser and basic abstract draw API
- https://github.com/haxeFoundation/format provides PNG saving
- https://github.com/nanjizal/pixelImageXY pixel drawing implementation