memononen / nanosvg

Simple stupid SVG parser
zlib License
1.69k stars 357 forks source link

[Help] gradients are broken on Haiku #177

Closed diversys closed 4 years ago

diversys commented 4 years ago

Hi, could you please check what could be a problem with gradients https://review.haiku-os.org/c/haiku/+/2661 Thanks.

memononen commented 4 years ago

Can you please provide an example of a gradient that does not work?

diversys commented 4 years ago

@PulkoMandy do you have one?

pulkomandy commented 4 years ago

The problem is not on nanosvg side for this, but in my lack of understanding of how to convert the nanosvg gradient transform to what our own code expects. And more specifically, in understanding what our code is expecting, once I understand that I can probably figure out how to convert the matrix (if possible) or modify the parser to output the info I need.

memononen commented 4 years ago

This discussion should be useful to you: https://github.com/memononen/nanosvg/issues/26

pulkomandy commented 4 years ago

Fixed my problems which were indeed not in nanosvg code. Issue can be closed :)

diversys commented 4 years ago

Cool! :)