How do you make a shape fade from dark to light?

Post questions on how to use or achieve an effect in Inkscape.
glasslady
Posts: 78
Joined: Wed Jun 26, 2013 12:34 am

How do you make a shape fade from dark to light?

Postby glasslady » Thu Jul 09, 2015 11:41 am

I have a rectangle with a smaller rectangular shape cut out from the middle. It needs to fade gradually from dark at the outer edge to white in the center. How is this done?

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

Re: How do you make a shape fade from dark to light?

Postby Lazur » Thu Jul 09, 2015 6:33 pm

Hi.

Here was a similar topic, how to add feathered edges to a rectangular hole in another rectangle. Could make seven different possible solutions, but there may be countless others.
Can you post an example/more detailed description on what exactly you are after?

glasslady
Posts: 78
Joined: Wed Jun 26, 2013 12:34 am

Re: How do you make a shape fade from dark to light?

Postby glasslady » Thu Jul 09, 2015 9:12 pm

The outer edges of the rectangle are aligned with the page edge. The color will be an accent background for a brochure, with pictures of objects and text in the center. Here's the file.
Attachments
rectangle with open center.svg
(2.83 KiB) Downloaded 297 times

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

Re: How do you make a shape fade from dark to light?

Postby Lazur » Thu Jul 09, 2015 10:49 pm

Do you want to print the brochure?
May need a bit different preparation too with crop marks.

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

Re: How do you make a shape fade from dark to light?

Postby Lazur » Thu Jul 09, 2015 11:17 pm

Frame is aligned on a ledger with crop marks, so you can resize the page at the end.

You can change the colours by editing the gradient fill.
However if you want it to be transparent as in your original file, with alpha channels, it would hardly work saving as pdf.
(At least a small rendering issue/ gap will be present at the corners.)

rectangle with open center3.svg
(11.68 KiB) Downloaded 229 times

glasslady
Posts: 78
Joined: Wed Jun 26, 2013 12:34 am

Re: How do you make a shape fade from dark to light?

Postby glasslady » Thu Jul 09, 2015 11:43 pm

I'm printing at home on a printer that does borderless printing.

I need to reverse the grading that happens with the Fill tool. The choice where it makes the center the full color, fading to white toward the outside would be what I need if it can be reversed - dark outside fading to white in the middle. If so, I would use a solid rectangle, instead of cutting open the center.

From the manual it seems that using the gradient tool may provide this option? I can't find the icon to get to the tool.
Attachments
rectangle with open center.svg
(5.35 KiB) Downloaded 156 times

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

Re: How do you make a shape fade from dark to light?

Postby Lazur » Fri Jul 10, 2015 12:12 am

Use the fill and stroke panel (Shift+Ctrl+F).
There is an option in 0.48 under the gradient to edit the steps.

Or just select the gradient steps with the node tool and adjust their colour in the fill and stroke panel.

rectangle with open center (1)II.svg
(4.69 KiB) Downloaded 214 times

glasslady
Posts: 78
Joined: Wed Jun 26, 2013 12:34 am

Re: How do you make a shape fade from dark to light?

Postby glasslady » Fri Jul 10, 2015 12:34 am

I'm okay now. Thanks.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: How do you make a shape fade from dark to light?

Postby ~suv » Fri Jul 10, 2015 1:29 am

glasslady wrote:I need to reverse the grading that happens with the Fill tool. The choice where it makes the center the full color, fading to white toward the outside would be what I need if it can be reversed - dark outside fading to white in the middle. If so, I would use a solid rectangle, instead of cutting open the center.

From the manual it seems that using the gradient tool may provide this option? I can't find the icon to get to the tool.
The gradient tool has its own icon in the toolbox on the left: :tool_gradient:. The keyboard shortcut to switch to the gradient tool is G (applies to 0.48 as well as to 0.91).

To reverse the colors of a gradient, type Shift+R when in the gradient tool context. (Inkscape 0.91 now also has this option as button on the gradient tool controls bar right above the canvas).


Return to “Help with using Inkscape”