使用 Fedora 和 Inkscape 制作一张简单的壁纸
Inkscape
![](/data/attachment/album/201701/01/195104tidznodpibx3codd.png)


在先前的两篇 Inkscape 的文章中，我们已经[介绍了 Inkscape 的基本使用、创建对象](/article-8079-1.html)以及[一些基本操作和如何修改颜色。](/article-8084-1.html)


在接下来的介绍中，我们会集合这些新的技巧，并且创建我们的第一个作品 —— 一张简单的壁纸。


### 更改文档大小


回顾先前的教程时，你可能会注意到主画板上的默认文档尺寸是一个黑色边框的矩形。Inkscape 中默认文档的大小是 A4 纸大小：


![](/data/attachment/album/201701/01/195106rwpxvnkcx26ncs32.png)


对于这张壁纸而言，我们会将尺寸改为 **1024px x 768px**。要改变文档的尺寸，进入`File` > `Document Properties...`。在<ruby> 文档属性 <rt>  Document Properties </rt></ruby>对话框中<ruby> 自定义文档大小 <rt>  Custom Size </rt></ruby>区域中输入宽度为 `1024`，高度为 `768` ，单位是 `px`：


![](/data/attachment/album/201701/01/195106awnnamin9wd1dadi.png)


页面上文档的轮廓大概像这样：


![](/data/attachment/album/201701/01/195107gcqvmcqq800cjwn3.png)


### 绘画背景


接下来，我们会画一个和文档一样大的矩形。因此选择<ruby> 矩形工具 <rt>  rectangle tool </rt></ruby>来画一个矩形，并使用<ruby> 工具控制栏 <rt>  Tools Control bar </rt></ruby>来调整矩形的大小。


![](/data/attachment/album/201701/01/195107z3zozwq23opjzob0.png)


接着在矩形中添加一个<ruby> 渐变填充 <rt>  Gradient Fill </rt></ruby>。如果你需要复习添加渐变，请阅读先前添加色彩的[那篇文章](/article-8084-1.html)。


![](/data/attachment/album/201701/01/195107x7pphasd4u86p7wp.png)


你的矩形也可以设置轮廓颜色。 使用<ruby> 填充和轮廓 <rt>  Fill and Stroke </rt></ruby>对话框将轮廓设置为 `none`。


![](/data/attachment/album/201701/01/195108z6dk6sxduauaz060.png)


### 绘制图样


接下来我们画一个三角形，使用 3 个顶点的星型/多边形工具。你可以按住 `CTRL` 键给三角形一个角度并使之对称。


![](/data/attachment/album/201701/01/195109ayrqflln3mcpyhlx.png)


选中三角形并按下 `CTRL+D` 来复制它（复制的图形会覆盖在原来图形的上面），**因此在复制后确保将它移动到别处。**


![](/data/attachment/album/201701/01/195110qy66qt47usz41q4f.png)


如图选中一个三角形，进入`Object` > `FLIP-HORIZONTAL`（水平翻转）。


![](/data/attachment/album/201701/01/195110l77mfr9zfuf77ee5.png) ![](/data/attachment/album/201701/01/195110whgh2zdazfp2lafa.png)


为这三个三角形重新着色。让它看上去和背景和谐。


![](/data/attachment/album/201701/01/195111gf9zzo03d4ohb643.png)


选中所有的三角形并复制，以填充你的样式：


![](/data/attachment/album/201701/01/195112lfihpin3k32u3zfo.png)


### 导出背景


最后，我们需要将我们的文档导出为 PNG 文件。点击 `File` > `EXPORT PNG`，打开导出对话框，选择文件位置和名字，确保选中的是 `Drawing` 标签，并点击 `EXPORT`。


![](/data/attachment/album/201701/01/195112deasselfs4w9hz22.png)


不要让工具成为你想象力的障碍。来制作美丽的壁纸并提交你的设计到 [FEDORA 25 壁纸](https://fedoramagazine.org/keeping-fedora-beautiful-contribute-wallpaper/)上来吧。你的设计或许会幸运地被选中成为上千万用户的壁纸。下面是用 Inkscape 和上面提到的技术制作的一些壁纸示例：


![](/data/attachment/album/201701/01/195113oqidsqbs25dfbtfd.png) ![](/data/attachment/album/201701/01/195114qnoj4nxl6zllh4co.png)




---


via: <https://fedoramagazine.org/inkscape-design-imagination/>


作者：[a2batic](http://a2batic.id.fedoraproject.org/) 译者：[geekpi](https://github.com/geekpi) 校对：[jasminepeng](https://github.com/jasminepeng)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 组织编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
In our previous two Inkscape articles, we have [covered the basics of using Inkscape, creating objects,](https://fedoramagazine.org/getting-started-inkscape-fedora/) and [doing some basic manipulations and color changes.](https://fedoramagazine.org/inkscape-adding-colour/)

In this next installment, we are going to put all these new skills together, and create our first composition — a simple wallpaper.

### Changing the document size

When going through the previous tutorials, you probably noticed the default document size shown on the main canvas window as a black bordered rectangle. The default document size in Inkscape is the A4 paper size:

For this wallpaper, we are going to resize the the document to **1024px x 768px**. To change the document size, Go to

>

. In the Custom Size section of the Document Properties dialog, enter the width of 1024px, and a height of 768px:

The document outline on the page should now look something like this:

### Drawing the background

Next up, we are going to draw a rectangle as big as the document. So choose the using **rectangle tool, ** draw a rectangle, and adjust the size of the rectangle using the Tools Control bar.

Next up, add a Gradient Fill to the rectangle. [If you need a refresher on adding gradients, check out the previous adding colours article.](https://fedoramagazine.org/inkscape-adding-colour/)

Your rectangle might also have a stroke colour set. Use the fill and stroke dialog to set the stroke paint to **none**.

### Drawing the pattern

Next we are going to draw a triangle. Use the star / polygon tool with 3 points. You can** PRESS and HOLD DOWN CTRL** key, to give your triangle an angle and symmetry.

Select the triangle and press **CTRL+D**, to duplicate it (the duplicated figure will overlap the existing one), **so be sure to move it after duplicating.**

Select one of the triangles as shown, and go to **OBJECT > FLIP-HORIZONTAL**

Recolour your three triangles to three colors that look good with your background.

Select all your triangles, and duplicate them again to fill out your pattern:

### Exporting your background

Finally, we need to export our document as a PNG file. Open up the export dialog with** FILE > EXPORT PNG**, select the file location and name, make sure the Drawing tab is pressed, and click on **EXPORT**

Let no tool be a barrier to your imagination. Come up with beautiful wallpapers and submit the designs for [FEDORA 25 wallpapers](https://fedoramagazine.org/keeping-fedora-beautiful-contribute-wallpaper/). Your design might get lucky enough to be used by thousands of Fedora users. Here are some examples of wallpapers created with Inkscape and the techniques above:



## Ivan Augusto

Loving this Inkscape series 😀

Today I “convert” some png to svg for a web project. Inkscape is simple, fast and fun!

## AndyMender

I use Inkscape for creating scientific figures for presentations and publications. People are always amazed, thinking that I’m using Adobe Illustrator. Hope I’ll manage to convince them at some point that Inkscape is indeed great!

## antikythera

submissions for Fedora 25 supplemental wallpaper are already closed and wallpapers have been voted for and packaged. any created wallpapers using this tutorial would no doubt be welcome as submissions when the time comes next year though. keep an eye out for the Fedora Magazine article.

## antikythera

please remove this and the above comment if possible

## antikythera

submissions for Fedora 25 supplemental wallpaper are already closed and wallpapers have been voted for and packaged. any created wallpapers using this tutorial would no doubt be welcome as submissions when the time comes next year though for F26. keep an eye out for the Fedora Magazine article.