How can we convert pebbles into resources
Answers
Pebble Draw Commands (PDC) are a powerful method of creating vector images and icons that can be transformed and manipulated at runtime. These can be used as a low-cost alternative to APNGs or bitmap sequences. Currently the only simple way to create PDC files is to use the svg2pdc.py tool. However, as noted in Vector Animationsthere are a some limitations to the nature of the input SVG file:
The svg2pdc tool currently supports SVG files that use only the following elements:g, layer, path, rect, polyline, polygon, line, circle.
Fortunately, steps can be taken when creating SVG files in popular graphics packages to avoid these limitations and ensure the output file is compatible with svg2pdc.py. In this guide, we will be creating compatible PDC files using an example SVG - this pencil icon.