Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to reverse engineer gradients back to a logical representation?

I am trying to identify gradients in an image and then make a logical representation of the gradient which can then be converted to SVG output. There are so many types of gradients in images, linear gradients, circular gradients, simply search at google for https://www.google.com.hk/search?q=gradient&tbm=isch

Assuming my code did already find a gradient, how can it then go about converting it to a logical representation which could then be converted to SVG?