Page 1 of 1

mvg gradient example does not work

Posted: 2007-09-23T14:00:07-07:00
by caviar
Hi,
This example was referred to in the IM docs (http://www.linux-nantes.fr.eu.org/~fmonnier/OCaml/MVG/).
I try running it under IM ("convert gradient.mvg gradient.png"), and it produces
a single-color image, with no gradient.

Am I doing something wrong? Or are gradients not supported?

Thanks!



push graphic-context
encoding "UTF-8"
viewbox 0 0 260 180
affine 1 0 0 1 0 0
push defs
push gradient 'linearGradient_A' linear 0.4,0 0.6,1
stop-color '#ee1122' 0
stop-color '#ddaa44' 0.6
stop-color '#4488ff' 1
pop gradient
pop defs
push graphic-context
fill 'url(#linearGradient_A)'
rectangle 0,0 260,180
pop graphic-context
pop graphic-context

Re: mvg gradient example does not work

Posted: 2007-09-23T14:31:34-07:00
by magick
We have the infa-structure in place for linear and radial gradients but it needs just a few hours work to complete it. Perhaps we'll finalize gradient support in the next release.