svgObjectModelGenerator icon indicating copy to clipboard operation
svgObjectModelGenerator copied to clipboard

OM presentation of gradients

Open dirkschulze opened this issue 10 years ago • 4 comments

The current OM representation of gradients does combine opacity and color gradients which are separate in PS. Also, the current representation does not even have midpoints. Maybe we should use the representation that Generator provides and create the final result in the svgWriter. Gradients in Ai are a subset of gradients in PS. Therefore I think this is the way to go forward.

What do you think @jhatwich @DmitryBaranovskiy ?

dirkschulze avatar Jan 07 '15 09:01 dirkschulze

So, that means that if number of colour stops is different to number of opacity stops it will put intermediate values for opacity on stops?

DmitryBaranovskiy avatar Jan 07 '15 09:01 DmitryBaranovskiy

We currently add missing color stops/opacity values yes.

dirkschulze avatar Jan 07 '15 10:01 dirkschulze

I want to preserve PS's/Generator's gradient representation and resolved midpoints for opacity and color gradients before concatenating them into one set of color stops. Again, this would be compatible to what Illustrator does as well.

dirkschulze avatar Jan 07 '15 10:01 dirkschulze

@dirkschulze suggestion seems good to me. I think keeping the definition compatible with Ai will be a theme for 2015!

jhatwich avatar Jan 07 '15 10:01 jhatwich