Skip to content

VGLite toolkit application to transform SVG into VGLite Graphics assets.

License

Notifications You must be signed in to change notification settings

nxp-mcuxpresso/gpu-vglite-toolkit

Repository files navigation

Overview

gpu-vglite-toolkit application allows converting SVG to header only assets. This graphics assets then can be used with VGLite APIs directly.

This application is implemented in python3 and platform independent.

Dependency

Module URL License
svgpathtools https://github.com/mathandy/svgpathtools MIT

NOTE

  1. On 1st run of gpu-vglite-toolkit.sh it clones svgpathtools with NXP fixes and due to git fetch it can take some time.
  2. When in DEVELOPEMNT use internal URL
  3. Ensure PYTHONPATH contains svgpathtools with NXP fixes e.g. export PYTHONPATH=$PYTHONPATH:/opt/nxp/gpu-vglite-toolkit/svgpathtools

Usage

./gpu-vglite-toolkit.sh tests/paint-color-01-t.svg.svg > paint_color_01_t.h

Tests

There are some tests vectors presents in 'tests' folder. SVGT12 conformance suite contains conformance test vectors. Out of which 'shape' related vectors has been validated with gpu-vglite-toolkit.

Demo with MCUSDK application

clock_freertos application demonstrates generating graphics assets using gpu-vglite-toolkkit.sh

Known Issues

  • At the moment only shape elements are support.
  • Font support implementation is ongoing.
  • Image support implementation is ongoing.
  • Opacity is not supported
  • font support will be available by Dec 2024
  • image support will be available by Dec 2024
  • Fallback paint color feature will be available by Dec 2024

About

VGLite toolkit application to transform SVG into VGLite Graphics assets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published