SVG filter classes

Instead of importing preprepared sprites and using those, I would like to build my own from primitives.
Take for instance a simple rounded square which can be the basics for a lot of different shapes if graphical filters are applied.
A bewellled pushbutton with shadow and highlight could be made from it by several filter operations.

It seems that there is a common way to do web sites using SVG filters and I was wondering if there is an equavalient in Lua that can be adapted to Codea.

Not necessary finished filter classes but some basic theory and starting out code.

It would of course be out standing to have it implementet in Codea, but that may be a little to much.

Where to start ?

Re Peter