Change background color of layer?

General discussions about Inkscape.
tomcam
Posts: 1
Joined: Wed Apr 07, 2010 5:00 pm

Change background color of layer?

Postby tomcam » Wed Apr 07, 2010 5:04 pm

Is there any concept of a layer having a background color? If I want to create a solid or gradient background, must I add a rectangle? If so, is there some way to magically resize a rectangle to match the canvas size?

Thanks!

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Change background color of layer?

Postby microUgly » Wed Apr 07, 2010 9:49 pm

Layers can't have a background so you have to create a shape.

I don't know of a way to quickly create a shape at the size of the canvas, but I always just make my shapes larger than than canvas. Since you only see the canvas area when viewing an SVG in a viewer it doesn't matter that the shape exists outside the canvas.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Change background color of layer?

Postby brynn » Thu Apr 08, 2010 12:06 am

I don't know of a way to quickly create a shape at the size of the canvas

We probably have different concepts of "quickly" :P But I would just create a rectangle, and enter the canvas size (Doc Properties > Page size or Custome size) in the tool control bar.

But you're right, the viewer will only show the page size anyway :D

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

Re: Change background color of layer?

Postby ~suv » Thu Apr 08, 2010 2:31 am

Why not use 'Snap to the page border' as snap target for bbox or nodes?

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Change background color of layer?

Postby prkos » Thu Apr 08, 2010 7:04 am

If you don't need many layers having different background color you can change the background of the whole document in Document Preferences. Don't forget to shift the opacity to 255 as the default is fully transparent.
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

Guest

Re: Change background color of layer?

Postby Guest » Thu Apr 08, 2010 7:56 am

Thank you all very much! That's just the info I needed. Much obliged.


Return to “General Discussions”