Page 1 of 1

Setting transparent overlay on solid color

Posted: 2017-02-26T04:19:22-07:00
by hivens
Hi,

Just a quick one. I was just wondering, but in order to lay a transparent gradient on a solid color does this need to be done in two separate images, and then combined via composite image?

This is what I was trying to do, something like this but haven't had any luck, so just wondering if it must be done as two separate images and combined instead?

Code: Select all

	$gradient->setBackgroundColor(new ImagickPixel('#3a7bd5')); 
	$gradient->newPseudoImage(100, 100, 'gradient:transparent-#3a6073');
Thank you.

Re: Setting transparent overlay on solid color

Posted: 2017-02-26T09:01:13-07:00
by snibgo
hivens wrote:... so just wondering if it must be done as two separate images and combined instead?
Yes.