Re: "transition" blending adjacent blocks of gray

Rob Owens <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <[email protected]>
On Mon, Jul 12, 2010 at 09:04:39AM -0700, Fred Weinhaus wrote:
> >How can I take a 100x100 light gray square, overlap it by 20 pixels with
> >a 100x100 dark gray square, and have a smooth transition between the two
> >shades of gray.  I don't want the 20x100 pixel transition to be medium
> >gray, I want it to smoothly transistion from light to dark gray.
> 
> 
> 
> convert -size 100x100 xc:"gray(25%)" gray1.png
> convert -size 100x100 xc:"gray(75%)" gray2.png
> 
> convert gray1.png[80x100+0+0] \( -size 100x20 
> gradient:"gray(75%)-gray(25%)" -rotate 90 \) gray2.png[80x100+0+0] 
> +append gray_gradient.png

Thanks everyone for all the good advice on this thread.  I'm on vacation
right now, but will test out all the suggestions and report back.

-Rob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.