Search found 6 matches

by KorbinianMoser
2014-01-10T05:57:33-07:00
Forum: IMagick
Topic: How to create multigradients with PHP Imagick?
Replies: 8
Views: 19766

Re: How to create multigradients with PHP Imagick?

Sadly I found no way to make this precise :-( So I better keep my draw-100-circles approach.
by KorbinianMoser
2014-01-10T04:27:33-07:00
Forum: IMagick
Topic: How to create multigradients with PHP Imagick?
Replies: 8
Views: 19766

Re: How to create multigradients with PHP Imagick?

Hi DJ Mike, thank you very much! For anyone else reading this, here's how I made it work for my purpose:

$gradient = 200;
$opaque = 100;

# new imagick object
$img1 = new Imagick();

# some gradients
$img1->newPseudoImage( 10, $gradient, 'gradient:transparent-white' );
$img1->newImage( 10 ...
by KorbinianMoser
2014-01-09T01:57:06-07:00
Forum: IMagick
Topic: How to create multigradients with PHP Imagick?
Replies: 8
Views: 19766

Re: How to create multigradients with PHP Imagick?

not, what I needed, but very nice :-)
by KorbinianMoser
2014-01-07T13:30:24-07:00
Forum: IMagick
Topic: How to create multigradients with PHP Imagick?
Replies: 8
Views: 19766

Re: How to create multigradients with PHP Imagick?

Here's my solution:

$gradient = new ImagickDraw();
$gradient->setFillColor('white');
for( $i=0; $i<100; $i++)
{
$gr = $innerRadius + $outerRadius/100 * ($i+1);
$gradient->setFillOpacity((1-($i+1)/100)/15);
$gradient->circle( $pos[0], $pos[1], $pos[0]+$gr, $pos[1]+$gr);
}

I thought, the fill ...
by KorbinianMoser
2014-01-07T12:40:47-07:00
Forum: IMagick
Topic: How to create multigradients with PHP Imagick?
Replies: 8
Views: 19766

Re: How to create multigradients with PHP Imagick?

Hi Fred, thanks for your answer! Ah, now I see that what you did is not just an example calling existing ImageMagick commands, in fact you extended ImageMagick with a complex script. Well, of course then there can't be a PHP Imagick command for that ;-)
by KorbinianMoser
2014-01-07T10:48:12-07:00
Forum: IMagick
Topic: How to create multigradients with PHP Imagick?
Replies: 8
Views: 19766

How to create multigradients with PHP Imagick?

Hi, I already found out how to create radial gradients with transparency in PHP Imagick:
$gradient->newPseudoImage( $radius*2, $radius*2, "radial-gradient:white-transparent");
Is there a similar way to realize multigradients like shown on http://www.fmwconcepts.com/imagemagick/multigradient/index ...