jfree / jfreesvg

A fast, lightweight Java library for creating Scalable Vector Graphics (SVG) output.
http://www.jfree.org/jfreesvg
GNU General Public License v3.0
319 stars 58 forks source link

opacity in gradients #2

Closed miminno closed 8 years ago

miminno commented 8 years ago

Currently opacity is not handled in gradients at all. Svg linearGradient stop can either accept an rgba color, or have a stop-opacity style attribute, neither of which are present in the current code. The rgbaColorStr function exists but is not used,

miminno commented 8 years ago

Any feedback on this? Thx

jfree commented 8 years ago

I took a look at this and prepared a fix for the next release. I'll dig that change out soon and commit it so you can take a look and give it a try.

jfree commented 8 years ago

This should fix it:

https://github.com/jfree/jfreesvg/commit/47777492373e59ca48e0f81b7ac91ec58b898353