Fedora 中使用 Inkscape 起步
inkscape
![inkscape-gettingstarted](/data/attachment/album/201612/31/133127r4nr0r1c4hpf4cgp.png)


Inkscape 是一个流行的、功能齐全、自由而开源的矢量[图形编辑器](https://inkscape.org/)，它已经在 Fedora 官方仓库中。它特别适合创作 [SVG 格式](https://en.wikipedia.org/wiki/Scalable_Vector_Graphics)的矢量图形。Inkscape 非常适于创建和操作图片和插图，以及创建图表和用户界面设计。


![cyberscoty-landscape-800px](/data/attachment/album/201612/31/133127sioxrleepceervix.png)


*使用 inkscape 创建的[风车景色](https://openclipart.org/detail/185885/windmill-in-landscape)的插图*


[其官方网站的截图页](https://inkscape.org/en/about/screenshots/)上有一些很好的例子，说明 Inkscape 可以做些什么。<ruby> Fedora 杂志 <rt>  Fedora Magazine </rt></ruby>上的大多数精选图片也是使用 Inkscape 创建的，包括最近的精选图片：


![communty](/data/attachment/album/201612/31/133128wt62z5g5aramhgei.png)


*Fedora 杂志最近使用 Inkscape 创建的精选图片*


### 在 Fedora 上安装 Inkscape


**Inkscape 已经[在 Fedora 官方仓库中了](https://apps.fedoraproject.org/packages/inkscape)，因此可以非常简单地在 Fedora Workstation 上使用 Software 这个应用来安装它：**


![inkscape-gnome-software](/data/attachment/album/201612/31/133129frrwz1xo1l1vvwrv.png)


另外，如果你习惯用命令行，你可以使用 `dnf` 命令来安装：



```
sudo dnf install inkscape

```

### （开始）深入 Inkscape


当第一次打开程序时，你会看到一个空白页面，并且有一组不同的工具栏。对于初学者，最重要的三个工具栏是：Toolbar、Tools Control Bar、 Colour Palette：


![inkscape_window](/data/attachment/album/201612/31/133129ow8x4dd17kk1wqqq.png)


**Toolbar**提供了创建绘图的所有基本工具，包括以下工具：


* 矩形工具：用于绘制矩形和正方形
* 星形/多边形（形状）工具
* 圆形工具：用于绘制椭圆和圆
* 文本工具：用于添加标签和其他文本
* 路径工具：用于创建或编辑更复杂或自定义的形状
* 选择工具：用于选择图形中的对象


**Colour Palette** 提供了一种设置当前选定对象的颜色的快速方式。 **Tools Control Bar** 提供了工具栏中当前选定工具的所有设置。每次选择新工具时，Tools Control Bar 会变成该工具的相应设置：


![](/data/attachment/album/201612/31/133130ifyhgoiuyl5rglwa.gif)


### 绘图


接下来，让我们使用 Inkscape 绘制一个星星。 首先，从 **Toolbar** 中选择星形工具，**然后在主绘图区域上单击并拖动。**


你可能会注意到你画的星星看起来很像一个三角形。要更改它，请使用 **Tools Control Bar** 中的 **Corners** 选项，再添加几个点。 最后，当你完成后，在星星仍被选中的状态下，从 **Palette**（调色板）中选择一种颜色来改变星星的颜色：


![inkscape-drawastar](/data/attachment/album/201612/31/133130d1313xx6c7n613w6.gif)


接下来，可以在 Toolbar 中实验一些其他形状工具，如矩形工具，螺旋工具和圆形工具。通过不同的设置，每个工具都可以创建一些独特的图形。


### 在绘图中选择并移动对象


现在你有一堆图形了，你可以使用 Select 工具来移动它们。要使用 Select 工具，首先从工具栏中选择它，然后单击要操作的形状，接着将图形拖动到您想要的位置。


选择形状后，你还可以使用尺寸句柄调整图形大小。此外，如果你单击所选的图形，尺寸句柄将转变为旋转模式，并允许你旋转图形：


![inkscape-movingshapes](/data/attachment/album/201612/31/133130rmv1m99m3p6dq6w1.gif)




---


Inkscape是一个很棒的软件，它还包含了更多的工具和功能。在本系列的下一篇文章中，我们将介绍更多可用来创建插图和文档的功能和选项。




---


作者简介：Ryan 是一名 Fedora 设计师。他使用 Fedora Workstation 作为他的主要桌面，还有来自 Libre Graphics 世界的最好的工具，尤其是矢量图形编辑器 Inkscape。




---


via: <https://fedoramagazine.org/getting-started-inkscape-fedora/>


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


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


OK
Inkscape is a popular, full-featured, free and open source vector [graphics editor](https://inkscape.org/) available in the official Fedora repositories. It’s specifically tailored for creating vector graphics in the [SVG format](https://en.wikipedia.org/wiki/Scalable_Vector_Graphics). Inkscape is great for creating and manipulating pictures and illustrations. It’s also good for creating diagrams, and user interface mockups.

![cyberscoty-landscape-800px](https://cdn.fedoramagazine.org/wp-content/uploads/2016/10/cyberscoty-landscape-800px.png)


![cyberscoty-landscape-800px](https://cdn.fedoramagazine.org/wp-content/uploads/2016/10/cyberscoty-landscape-800px.png)

[ Windmill Landscape](https://openclipart.org/detail/185885/windmill-in-landscape) illustration created using inkscape

The [screenshots page on the official website](https://inkscape.org/en/about/screenshots/) has some great examples of what can be done with Inkscape. The majority of the featured images here on the Fedora Magazine are also created using Inkscape, including this recent featured image:

## Installing Inkscape on Fedora

Inkscape is [available in the official Fedora repositories](https://apps.fedoraproject.org/packages/inkscape), so it’s super easy to install using the Software app in Fedora Workstation**:**

Alternatively, if you are comfortable with the command line, you can install using the following

command:

sudo dnf install inkscape

## Dive into Inkscape (getting started)

When opening the app for the first time, you are greeted with a blank page, and a bunch of different toolbars. For beginners, the three most important of these toolbars are the Toolbar, the Tools Control Bar, and the Colour Palette:

The **Toolbar** provides all the basic tools for creating drawings, including tools such as:

- The rectangle tool, for drawing rectangles and squares
- The star / polygon (shapes) tool
- The circle tool, for drawing ellipses and circles
- The text tool, for adding labels and other text
- The path tool, for creating or editing more complex or customized shapes
- The select tool for selecting objects in your drawing

The **Colour Palette** provides a quick way to set the colour of the currently selected object. The **Tools Control Bar** provides all the settings for the currently selected tool in the Toolbar. Each time you select a new tool, the Tools Control Bar will update with the settings for that tool:

### Drawing shapes

Next, let’s draw a star with Inkscape. First, choose the star tool from the **Toolbar, **and click and drag on the main drawing area**.**

You’ll probably notice your star looks a lot like a triangle. To change this, play with the Corners option in the **Tools Control Bar**, and add a few more points. Finally, when you’re done, with the star still selected choose a colour from the **Palette** to change the colour of your star:

Next, experiment with some of the other shapes tools in the Toolbar, such as the rectangle tool, the spiral tool and the circle tool. Also play around with some of the settings for each tool to create a bunch of unique shapes.

## Selecting and moving objects in your drawing

Now you have a bunch of shapes, and can use the Select tool to move them around. To use the select tool, first select it from the toolbar, and then click on the shape you want to manipulate. Then click and drag the shape to where you want it to be.

When a shape is selected, you can also use the resize handles to scale the shape. Additionally, if you click on a shape that is selected, the resize handles change to rotate mode, allowing you to spin your shape:


Inkscape is an awesome piece of software that is packed with many more tools and features. In the next articles in this series, we will cover more of the features and options you can use to create awesome illustrations and documents.

## BKM

Nice! Good to see full featured applications for everyday use.

## Fernando Rodrigues Baroni

Nice post!

Inkscape is amazing! I’ve used it to create some basic diagrams like http://baroni.tech/blog/git-bisect/ and it is extremely easy.

Could you write about using it to do wireframing/UI mocks?

Thank you!

## Leslie Satenstein

Hi Ryan

Before this posting, I was always a little afraid of doing designs in graphics. You see, I am a command line man and not comfortable with graphics.

Following your step by step example, made me realize that its not difficult, that ctl-z works as an undo, etc.

I must thank you for this posting. It is most informative and enlightening.

## Onyeibo Oku

Seriously Leslie?

## Leslie Satenstein

Yes, I grew up with IBM Mainframes, later with Unix. I diddatabase management, ERP, with applied math in capacity planning, system modeling, forecasting and application of probability and mathematical expectations to tackle large scale business problems.

My world did not touch graphics ever.

## major_tom

what my wish to christmas would be:

having (svg) dynamic vector objects in gimp, editing them by one click in inkscape changes them in gimp dynamicly

if that would be possible it would be a very big deal!

## LuxX

Perfect timing on this! I was just wondering if there was a vector program for Fedora. 🙂

## chuck maki

it looks just like GIMP to me.