Hi, I've been working on an export of patch gradients (aka mesh gradients) from my program Laidout to SVG. It currently basically follows Bulia's approximation method here: http://inkscape.org/screenshots/gallery/inkscape-0.45-gradient-mesh-experime...
The final steps of growing the boundary of the patch so the edges do not introduce transparency, and the blurring is a bit haphazard. My question is this: What is the relationship between "blur radius", the 0..100 blur slider in Inkscape, and SVG's stdDeviation? I've tried using various static values, but there doesn't seem to be a very satisfactory one.
A sample exported file is here: http://www.tomlechner/randompics/test-colorpatch.svg
Tom ----------------------- http://www.laidout.org http://www.tomlechner.com
Tom Lechner wrote:
A sample exported file is here: http://www.tomlechner/randompics/test-colorpatch.svg
Inkscape doesn't seem to support the individual style attributes. Could you post a sample that uses the css style="" attribute?
Aaron Spike
On 09/22/2007 04:33:35 PM, Aaron Spike wrote:
Inkscape doesn't seem to support the individual style attributes. Could you post a sample that uses the css style="" attribute?
Arg! I meant: http://www.tomlechner.com/randompics/test-colorpatch.svg
Forgot the ".com". Does that work? I'm not sure which attributes you are refering to. The Inkscape I'm running (0.45) opens it apparently fine. Groups in the file have a transform, and some have a clip-path="url(#link1)", filter="url(#link2), which is the same sort of thing from native Inkscape SVG.
Tom
On 9/22/07, Tom Lechner <lechner@...1808...> wrote:
The final steps of growing the boundary of the patch so the edges do not introduce transparency, and the blurring is a bit haphazard. My question is this: What is the relationship between "blur radius", the 0..100 blur slider in Inkscape, and SVG's stdDeviation?
from 0.45 relnotes:
The blur value is a percentage, with 100% corresponding to a blurring radius (standard deviation of Gaussian function) of 1/8 of the object's bounding box' perimeter (that is, for a square, a blur of 100% will have the radius equal to half a side, which turns any shape into an amorphous cloud).
I've tried using various static values, but there doesn't seem to be a very satisfactory one.
Of course if you're generating SVG, you need to set this as an abs length with units. The percents are only for the UI.
participants (3)
-
Aaron Spike
-
bulia byak
-
Tom Lechner