Overlapping text colours behind a gradient

Post questions on how to use or achieve an effect in Inkscape.
MattShepherd
Posts: 8
Joined: Fri Sep 09, 2011 8:36 pm

Overlapping text colours behind a gradient

Postby MattShepherd » Sat Apr 13, 2013 6:20 am

Quite basic for most, but I've been hammering away at this for a couple of hours and I just can't figure it out.

I've got a series of text entries in a vertical line. I want to fade the text from one colour (yellow) at the top to another colour (black) at the bottom. I'd like this to be done with a nice smooth gradient, not by changing the text colour line by line.

Like so:

HELLO --> yellow and then
HELLO --> a
HELLO --> very
HELLO --> gradual
HELLO --> fade
HELLO --> to
HELLO --> black

I can fade from nothing to black with a transparency gradient in a rectangle that overlays the entire vertical line of text -- the solid white at the top covers the first HELLOs and fades into black for the remaining HELLOs.

And I can fade from yellow to nothing doing the reverse with a vertical line of yellow text.

But I can't figure out how to fade from yellow to black.

I don't want to convert the text to an image -- I want it to remain recognizable, editable text.

Halp?

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Overlapping text colours behind a gradient

Postby ragstian » Sat Apr 13, 2013 6:47 am

Hi
Halp on the way!! :D

Type the text with a "carriage return" at end of each line.
Apply gradient.

Image

Your gradient needs two stops - both not transparent - one yellow and one black.
To get the first line to be totally black and the last totally yellow place the gradient handles below the first and above the last line.
Gradients are still "black magic" to me but after some trial & error I normally get it to work.

Image

If you want your text to be individual text objects the process is more or less the same but you need to place a gradient for each individual line.
You have to "space" the gradients - in the example below I am snapping the gradient handles to guidelines.
All gradients ( one for each line ) snap to the same two guide lines.

Image

SVG File:
Line_Gradient_EX.svg
(155.25 KiB) Downloaded 159 times

If you need more detailed help - chime back.

Good Luck
RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

MattShepherd
Posts: 8
Joined: Fri Sep 09, 2011 8:36 pm

Re: Overlapping text colours behind a gradient

Postby MattShepherd » Sat Apr 13, 2013 10:55 pm

Thanks, Ragnar! Originally every line was a discrete text block, but I redid the document with large text blocks instead, and your way works perfectly.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Overlapping text colours behind a gradient

Postby Lazur » Sat Apr 13, 2013 11:00 pm

You could simply group the text object together. That way you can get the effect done correctly on each.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Overlapping text colours behind a gradient

Postby ragstian » Sun Apr 14, 2013 1:35 am

Hi.

Lazur URH;
You could simply group the text object together. That way you can get the effect done correctly on each.

Smart - proves my favorite proverb - "There are more than one way to skin a cat" :D
RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar


Return to “Help with using Inkscape”