Учимся рисовать в графическом редакторе inkscape

В стадии разработки

Как набрать знак евро

Improvements

Command line usage

Three new command line options controlling page size are supported when exporting in SVG format:

  • (feature requests in bug # 1597921 and bug # 1722844 )
  • while using

Text tool

Support for switching between RTL and LTR writing directions has been added.

(On narrow screens, find it by unfolding the overhang menu for the text tool’s tool controls by clicking on the triangle at the far right.)

Circle/ellipse/arc tool

New fields for setting vertical/horizontal radius (Rx/Ry) were added to the tool controls bar.
(Bug # 1181127, Ellipse control bar should include Rx, Ry, or width and height )

PDF+LaTeX export

Support for multi-line text with basic support for line-spacing attribute was added. (Bug # 771959 )

Please note:

  • Currently only the line-spacing of the top level text element is considered, i.e. all lines in one text element share the same line spacing.
  • LaTeX is much more clever with respect to line spacing, so layout might not always be exactly the same as in Inkscape.
  • Make sure to use a continuously scalable font in LaTeX, otherwise results might be unexpected .

Performance: New preferences option

A new option called «Rendering tile multiplier» was added under Rendering preferences. It can adjust the size of rendering tiles (tiles are portions of canvas area that are calculated in one go). Rendering larger areas with complex content at once requires more computational time, but modern computers come with powerful hardware and many should be up to the task.

Making this value larger can speed up drawing, if you have large areas with complex filters in your drawing or work a lot with high zoom levels on filtered objects. Making the value smaller can make zooming and panning in relevant areas faster on low-end hardware (if there are no large filtered areas on the visible part of the canvas).

The new default value makes your screen consist of about four tiles that are rendered independently if you’re not using a hidpi screen (which requires more tiles). A more detailed explanation is available .

Startup Performance

The first start of Inkscape on Windows is much faster now.

This is the result of improvements in fontconfig 2.13.0, a third party library which handles font related tasks for Inkscape. One of the tasks is creating an index of all fonts available on the system which is much faster now. If the new indexing causes any issues (i.e. fonts or glyphs not available that could be used before) make sure to let us know or report the issue directly to the fontconfig project .

Extensions

Extensions on Windows can now make use of Tkinter, without requiring users to install it themselves. Tkinter provides functionality for creating interactive graphical user interfaces. This is used, for example, by the TexText extension that renders mathematical LaTeX formulas to SVG (feature request at bug # 1735451 ).

Дублирование, выравнивание, распределение

One of the most common operations is duplicating an
object (Ctrl+D). The duplicate is
placed exactly on top of the original and is selected, so you can drag it away
by mouse or by arrow keys. For
practice, try to add copies of this black square in a line next to each
other:

Chances are, your copies of the square are placed more or less randomly.
This is where the ObjectAlign and
Distribute
dialog (Shift+Ctrl+A) is useful. Select
all the squares (Shift+click or drag a rubberband), open the
dialog and press the “Center on horizontal axis” button, then the “Make
horizontal gaps between objects equal” button (read the button tooltips). The
objects are now neatly aligned and distributed with equal spaces in between.
Here are some other alignment and distribution examples:

Создание текста

Inkscape умеет создавать длинные и сложные тексты, но также прекрасно подходит для создания маленьких текстовых объектов, вроде баннеров, логотипов, диаграмм, этикеток, заголовков и т.п. Этот раздел урока даёт начальные знания о возможностях инструмента для работы с текстом.

Creating a text object is as simple as switching to the Text tool (F8),
clicking somewhere in the document, and typing your text. To change font family, style,
size, and alignment, open the Text and Font dialog (Shift+Ctrl+T). That
dialog also has a text entry tab where you can edit the selected text object — in some
situations, it may be more convenient than editing it right on the canvas (in
particular, that tab supports as-you-type spell checking).

Как и другие инструменты, инструмент Текст может выбирать объекты своего типа — текстовые объекты — поэтому, вы можете щелчком мыши выбрать текстовый объект и, установив курсор, начать изменять текст (например, этот абзац).

One of the most common operations in text design is adjusting spacing between letters
and lines. As always, Inkscape provides keyboard shortcuts for this. When you are
editing text, the Alt+< and Alt+> keys change
the letter spacing in the current line of a text object, so that
the total length of the line changes by 1 pixel at the current zoom (compare to Selector
tool where the same keys do pixel-sized object scaling). As a rule, if the font size in
a text object is larger than the default, it will likely benefit from squeezing letters
a bit tighter than the default. Here’s an example:

Суженный вариант выглядит немного лучше, но по прежнему не идеально: межсимвольное расстояние не одинаково, например буквы «a» и «t» слишком далеки друг от друга, в то время как «t» и «i» слишком близки. Количество подобных изъянов (особенно заметных при больших кеглях шрифта) больше у шрифтов низкого качества, нежели чем у шрифтов высокого качества. Но, честно говоря, в любом тексте с любым шрифтом вы, вероятно, найдёте пары букв, кернинг которых можно было бы улучшить.

Inkscape makes these adjustments really easy. Just move your text editing cursor between
the offending characters and use Alt+arrows to move the letters right
of the cursor. Here is the same heading again, this time with manual adjustments
for visually uniform letter positioning:

In addition to shifting letters horizontally by Alt+Left or
Alt+Right, you can also move them vertically by using
Alt+Up or Alt+Down:

Of course you could just convert your text to path (Shift+Ctrl+C) and
move the letters as regular path objects. However, it is much more convenient to keep
text as text — it remains editable, you can try different fonts without removing
the kerns and spacing, and it takes much less space in the saved file. The only
disadvantage to the “text as text” approach is that you need to have the original font
installed on any system where you want to open that SVG document.

Similar to letter spacing, you can also adjust line spacing in
multi-line text objects. Try the Ctrl+Alt+< and
Ctrl+Alt+> keys on any paragraph in this tutorial to space it in or out
so that the overall height of the text object changes by 1 pixel at the current zoom.
As in Selector, pressing Shift with any spacing or kerning shortcut
produces 10 times greater effect than without Shift.

Изменение масштаба

The easiest way to zoom is by pressing - and
+ (or =) keys. You can also use
Ctrl+middle click or Ctrl+right
click
to zoom in, Shift+middle
click
or Shift+right
click
to zoom out, or rotate the mouse wheel with Ctrl. Or, you can click in the zoom entry field (in
the bottom right region of the document window, labelled “Z”), type a precise
zoom value in %, and press Enter. We also have the Zoom tool
(in the toolbar on left) which lets you to zoom into an area by dragging around
it.

Inkscape also keeps a history of the zoom levels you’ve used in this work
session. Press the ` key to go back to the previous zoom, or
Shift+`
to go forward.

Series Information

Создание и работа с документами в inkscape

Процесс создания документов подробно описан в разделе инструкции работа с файлами в inkscape. Здесь мы напомним самые основные моменты, которые пригодятся в работе. Чтобы создать новый пустой документ, используйте главное меню «Файл» — «Создать» или нажмите Ctrl+N. Чтобы открыть существующий SVG документ, используйте «Файл» — «Открыть» или Ctrl+O. Чтобы сохранить документ, используйте главное меню «Файл» — «Сохранить» или Ctrl+S, либо «Сохранить как» Shift+Ctrl+S, чтобы сохранить под новым именем.

Inkscape использует формат SVG (масштабируемая векторная графика) для своих файлов. SVG является открытым стандартом векторной графики. SVG файлы базируются на XML и могут редактироваться в любом редакторе текста или XML (т.е. даже без inkscape). Кроме этого SVG файлы Inkscape можно импортировать и экспортировать в другие форматы, например, EPS, PNG.

Inkscape открывает каждый новый документ в отдельном окне. Таким образом, перемещаться между документами можно так же, как вы переключаетесь между окнами Windows. Возможно, вам будет интересно узнать, что переключаться между окнами в Windows можно с помощью сочетания клавиш Alt+Tab.

Заливки и обводки

Доступ ко многим функциям inkscape реализован через диалоговые окна. Наверное самым простым способ покрасить объект в разные цвета будет открыть активировать его и выбрать цвет на палитре цветов.

Но более мощный инструмент управления цветами объекта находится в диалоге заливки и обводки. Этот диалог доступен в верхнем пункте главного меню «Объект» или по комбинации клавиш Shift+Ctrl+F. Выберите какой-нибудь объект, например, эллипс, как на рисунке ниже, и откройте диалоговое окно заливки и обводки.

Вы увидите, что диалоговое окно имеет три вкладки: «заливка», «обводка» и «стиль обводки». Закладка «Заливка» позволяет редактировать заливку выбранных объектов. С помощью кнопок сразу под названием закладки, можно выбрать типы заливки, включая и первый пункт «нет заливки» (кнопка с крестиком), сплошной цвет заливки, а также линейные и радиальные градиенты. Для рисунка выше была активирована вторая кнопка сплошной заливки.

Ниже кнопок с видами заливки на закладке «Заливка» вы увидите варианты выбора цвета. Для каждого способа выбора цвета есть своя собственная вкладка: RGB, CMYK, HSL и «Круг». Довольно удобно выбирать цвет на закладке «Круг», где вы можете повернуть треугольник внутри круга, чтобы выбрать цвет на цветовом круге, а затем выберите оттенок этого цвета в треугольнике. Для всех цветов изменять прозрачность можно с помощью ползунка «Альфа-канала» (прозрачность). Прозрачность измеряется в % непрозрачности, т.е. 100% абсолютно непрозрачный цвет и, наоборот, 0% абсолютно прозрачный.

Всякий раз, когда вы выбираете объект, цвет в описанном выше диалоговом окне обновляется, показывая цвет текущей заливки и обводки. Если выбрано несколько объектов, диалоговое окно показывает их средний цвет. Поэкспериментируйте с этим диалоговым окном. Теперь вы можете создавать разноцветные фигуры и даже полупрозрачные.

На закладке «Обводка», можно сделать обводку объекта без заливки или сделать заливку сплошного цвета и настроить ее прозрачность:

Последняя закладка в этом диалоговом окне «стиль обводки», позволяет задать ширину, тип линии обводки и другие параметры обводки объекта:

Ну, и, наконец, вместо того, чтобы заливать фигуры сплошным цветом, можно использовать градиенты для заливки или обводки:

При переходе от сплошной заливки цветом к градиенту создается настройка градиента, для идентификации которой программа присваивает настройке номер.

Только что созданная настройка градиента использует предыдущий цвет сплошной заливки фигуры, который переходит из непрозрачного цвета в прозрачный. Для управлении градиентом заливки фигуры активируйте инструмент градиент в боковом окне инструментов или нажмите Ctrl+F1. Появятся две направляющие градиента в заливке фигуры. Перемещаете направляющие (ручки) градиента и вы увидите как он изменяется. Направляющие градиента в зависимости от их длины изменяют насыщенность и форму градиента. Так изменяя длину ручек (направляющих) градиента можно из кругового градиента сделать овальный и т.д. Цвет градиента можно менять в палитре цветов inkscape или в диалоговом окне по кнопке «изменить». У градиента есть два цвета, цвет ручки и цвет центрального маркера. Если нажать на центральный маркер, то в диалоговом окне отобразится его цвет и прозрачность и их можно поменять и то же самое можно сделать для цвета ручки. Для этого надо активировать маркер любой из двух ручек градиента.

Еще один достаточно удобный способ изменить цвет объекта — это воспользоваться инструментом «Пипетка» в боковом окне инструментов или F7. Просто щелкните в то место рисунка, где уже есть нужный вам цвет и этот цвет будет присвоено заливке выбранного объекта. Щелчок пипеткой с нажатой клавишей Shift назначит выбранный цвет цвету обводки.

Изменение масштаба

The easiest way to zoom is by pressing - and
+ (or =) keys. You can also use
Ctrl+middle click or Ctrl+right
click
to zoom in, Shift+middle
click
or Shift+right
click
to zoom out, or rotate the mouse wheel with Ctrl. Or, you can click in the zoom entry field (in
the bottom right region of the document window, labelled “Z”), type a precise
zoom value in %, and press Enter. We also have the Zoom tool
(in the toolbar on left) which lets you to zoom into an area by dragging around
it.

Inkscape also keeps a history of the zoom levels you’ve used in this work
session. Press the ` key to go back to the previous zoom, or
Shift+`
to go forward.

Inkscape tools

The vertical toolbar on the left shows Inkscape’s drawing and editing
tools. Depending on your screen resolution, the Commands
bar with general command buttons, such as “Save” and “Print”, can be
found either in the top part of the window, right below the menu, or on the
right side of the window, in between the scroll bar and the Snap
Controls bar. Right above the white Canvas
Area, there’s the Tool Controls bar with
controls that are specific to each tool. The status bar
at the bottom of the window will display useful hints and messages as you
work.

Many operations are available through keyboard shortcuts. Open
HelpKeys and Mouse
Reference
to see the complete list of available
shortcuts.

Интерполяция между двумя различными объектами

При интерполяции двух различных объектов программа изменяет форму контура одного объекта в форму контура другого. В результате этого вы получаете промежуточные изменения между объектами, регулярность которых определяется значением шагов интерполяции.

Например, возьмём следующие два объекта:

Теперь выделите два объекта и запустите интерполяцию. Результат должен быть примерно такой:

Как видно из приведённого выше результата, пространство между кругом и треугольником заполнено 6-ю объектами, приближающими форму одного контура к другому.

Когда расширение Интерполяция используется для двух различных объектов, важно положение начального узла каждого объекта. Чтобы найти начальный узел для объекта, выделите объект, затем выберите инструмент Узлы так, чтобы узлы появились и нажмите TAB

Первый выделенный узел является начальным узлом этого объекта.

Посмотрите на изображение ниже. Оно идентично предыдущему примеру, за исключением отображения узловых точек. Зелёный узел на каждом объекте — начальный.

Предыдущий пример (см. снова ниже) был создан, исходя из данных положений начального узла.

Теперь обратите внимание на изменение результата интерполяции, если начальный узел контура треугольника находится в другой позиции:

Other User Interface

General

  • Canvas background color can be set without exporting it (background transparency is only used for export but not the canvas).
  • Panning the canvas with the Space bar is now always turned on and doesn’t require an additional mouse button press to grab the canvas: just press the Space bar and move the mouse pointer to pan the canvas.

Guides

  • Guides visibility can be toggled by clicking the ruler
  • Guides can now have labels, and the colour of individual guides can also be set by the user. To label or colour a guide, double click on the guideline to bring up the guide properties dialog.

Menu/Access

  • The interface elements are accessible through the keyboard with ALT+key in many more dialogs
  • “Text and Font”, “Fill and Stroke”, and “Check Spelling” dialogs are added to the text object context menu (right click)
  • Menu items renamed:
    • Edit -> Preferences
    • Edit -> Input Devices
    • File -> Cleanup Document
  • Checkboxes to indicated status of View -> Grid/Guides/Snap/Color Management
  • Group/Ungroup from the context menu

Preferences

  • New keyboard shortcut editor
  • Prefs -> Interface — New option for dockbar and switcher style (icons, text, icons & text) (bug #1098416)
  • Prefs -> Interface -> Windows — optionally don’t save & restore documents viewport (bug #928205)
  • Prefs -> Behavior -> Steps — unit selector for steps (move, scale, inset/outset) (bug #170293)
  • Prefs -> Behavior -> Steps — option for relative snapping of guideline angles (rev 10307)
  • Prefs -> Behavior -> Clones — optionally relink linked offsets on duplication (bug #686193)
  • Prefs -> Input/Output -> SVG output — NEW: optionally enforce relative or absolute coordinates (bug #1002230)

Dialogs

  • Dialog status and position is remembered between sessions
  • Most dialogs now dockable (including “Object properties”, “Object attributes”, “Text and Font”, “Check spelling”, “Export PNG image”, “XML editor”, “Find/Replace”, and “Tiled clones”)
  • New preference to allow Windows users to choose between native and Gtk Open/Save dialog
  • Preferences dialog cleanup
  • Document Metadata dialog merged into Document Properties

Simple calculations in spinboxes

In most spinboxes (a spinbox is an entry field with up and down “spinbuttons” next to it) you can now write simple calculations. Some examples:

  • 2 * 3
  • 50 + 100 , or
  • ((12 + 34) * (5 + 5) — 2) / 2

Moreover, you can use units in entering values, like 2 + 2 cm . The result will be converted to the selected unit for the particular entry.

Configurable Control Handles

New preferences have been added to allow for the size of the on-canvas controls to be increased or decreased. The “Input Devices” section has been updated to control this.

Работа с документами

To create a new empty document, use
FileNew
or press Ctrl+N. To create a new
document from one of Inkscape’s many templates, use
FileNew from
Template…
or press Ctrl+Alt+N.

To open an existing SVG document, use
FileOpen
(Ctrl+O). To save, use
FileSave
(Ctrl+S), or
FileSave
As
(Shift+Ctrl+S) to save under a
new name. (While Inkscape comes with its Autosave feature enabled, it is still
recommended that you follow the best practice to “save early, save
often“.)

Inkscape uses the SVG (Scalable Vector Graphics) format for its files. SVG
is an open standard widely supported by graphic software. SVG files are based on
XML and can be edited with any text or XML editor (apart from Inkscape, that
is). Besides SVG, Inkscape can import and export many other file formats. You
can find lists of the supported file formats in the
Save and Import
dialogs.

Inkscape opens a separate document window for each document. You can
navigate among them using your window manager (e.g. by Alt+Tab), or you can use the
Inkscape shortcut, Ctrl+Tab, which will
cycle through all open document windows. (Create a new document now and switch
between it and this document for practice.) Note: Inkscape treats these windows
like tabs in a web browser, this means the Ctrl+Tab shortcut only
works with documents running in the same process. If you open multiple files
from a file browser or launch more than one Inkscape process from an icon it
will not work.

Оконтуривание (преобразование в контур)

Any shape or text object can be converted to path
(Shift+Ctrl+C). This operation does not change the appearance of the
object but removes all capabilities specific to its type (e.g. you can’t round the
corners of a rectangle or edit the text anymore); instead, you can now edit its
nodes. Here are two stars — the left one is kept a shape and the right one is
converted to path. Switch to node tool and compare their editability when selected:

Moreover, you can convert to a path (“outline”) the stroke of any
object. Below, the first object is the original path (no fill, black stroke), while the
second one is the result of the Stroke to Path command (black fill,
no stroke):

Создание фигур

Time for some nice shapes! Click on the Rectangle tool in the toolbar on
the left (or press F4) and click-and-drag, either in a new
empty document or right here:

As you can see, default rectangles come up with a blue
fill and a black stroke (outline),
and fully opaque. We’ll see how to change that below. With other tools, you can
also create ellipses, stars, and spirals:

These tools are collectively known as shape tools.
Each shape you create displays one or more handles; try
dragging them to see how the shape responds. The Tool Controls bar for a shape
tool is another way to tweak a shape; these controls affect the currently
selected shapes (i.e. those that display the handles) and
set the default that will apply to newly created shapes.

To undo your last action, press Ctrl+Z. (Or, if you
change your mind again, you can redo the undone action by
Shift+Ctrl+Z.)

Extensions

Units: Breaking change

Due to the implementation of proper document units, the functions and had to be modified and moved to the class.

Unit conversion calls should be replaced with and calls (usually and ).

See also: Notes On Units Handling in Extensions in 0.91

New

  • The new guillotine extension is used for exporting PNG slices from a drawing. The slice rectangles are defined by adding horizontal and vertical guides within the canvas boundary, the canvas boundary serves as the outside of the sliced area.
  • The new G-code tools extension converts paths to G-code (using circular interpolation), makes offset paths and engraves sharp corners using cone cutters.
  • New QR code generator.
  • New isometric grid generator .
  • New bitmap crop extension.
  • New Extract text extension. Outputs a document’s text elements in a chosen order.
  • New Merge text extension.
  • New HSL adjust extension.
  • New Replace font extension.
  • New N-Up layout extension.
  • New Voronoï diagram extension (creates Voronoï diagrams and Delaunay triangulations based on the selected objects’ barycenter).
  • New Interpolate Attribute in a group extension.
  • New Typography extensions menu.
  • New Hershey Text extension.

Improvements

  • Number nodes. New parameters allowing users to choose the starting dot number and the numbering step between two nodes.
  • Optional sliders added on and extension parameters (full and minimal modes).
  • Extension parameters values (”except attributes!”) can now be contextualized for translation (with ).
  • New sub-menus in the Render menu, grouping the bar-codes, grids and layout extensions.

Эллипсы

Инструмент для редактирования эллипсов («Рисовать круги, эллипсы и дуги» F5) может создавать эллипсы и круги, которые вы можете превращать в сегменты или дуги. Горячие клавиши такие же, как и у инструмента редактирования прямоугольников:

  • With Ctrl, draw a circle or an integer-ratio (2:1, 3:1, etc.) ellipse.

  • With Shift, draw around the starting point as center.

Давайте исследуем ручки эллипса. Выберите красный эллипс:

Once again, you see three handles initially, but in fact they are four. The rightmost
handle is two overlapping handles that let you “open” the ellipse. Drag that rightmost
handle, then drag the other handle which becomes visible under it, to get a variety
of pie-chart segments or arcs:

Чтобы получить сегмент, потяните ручку вне эллипса, а для получения дуги — внутри его. На верхнем примере 4 сегмента слева и 3 дуги справа. Дуги — это незакрытые фигуры, т.е. обводка идёт вдоль эллипса, но не соединена в концах дуги. Вы можете сделать это более наглядным, убрав заливку и оставив только обводку:

Note the fan-like group of narrow segments on the left. It was easy
to create using angle snapping of the handle with Ctrl. Here are the
arc/segment handle shortcuts:

  • With Ctrl, snap the handle every 15 degrees when dragging.

  • Shift+click to make the ellipse whole (not arc or segment).

The snap angle can be changed in Inkscape Preferences (in BehaviorSteps).

Другие две ручки в эллипсе используются для изменения размера вокруг центра. Их горячие клавиши схожи с клавишами ручек, закругляющих прямоугольник:

  • Drag with Ctrl to make a circle (make the other radius the same).

  • Ctrl+click to make a circle without dragging.

Как и у прямоугольника, ручки управления, меняющие размер, регулируют ширину и высоту в собственных координатах эллипса. Это значит, что сплюснутый или повёрнутый эллипс может быть вытянут или сжат по линии собственных осей, оставаясь сплюснутым или повёрнутым. Попробуйте изменить размер этих эллипсов при помощи ручек, меняющих размер:

Редактирование контуров

В отличие от фигур, созданных инструментами фигур, перо и карандаш создают так называемые контуры. Контур — это последовательность отрезков прямых линий и/или кривых Безье, которая как и любой другой объект в Inkscape может иметь собственные параметры заливки и обводки. В отличие от фигур контур может свободно редактироваться смещением любого из его узлов (а не только предустановленных рычагов) или перетаскиванием его сегмента. Выберите этот контур и включите инструмент редактирования узлов (F2):

You will see a number of gray square nodes on the path. These
nodes can be selected by click,
Shift+click, or by dragging a rubberband —
exactly like objects are selected by the Selector tool. You can also click a
path segment to automatically select the adjacent nodes. Selected nodes become
highlighted and show their node handles — one or two
small circles connected to each selected node by straight lines. The ! key
inverts node selection in the current subpath(s) (i.e. subpaths with at least one
selected node); Alt+! inverts in the entire path.

Paths are edited by dragging their nodes, node handles, or directly
dragging a path segment. (Try to drag some nodes, handles, and path segments of the
above path.) Ctrl works as usual to restrict movement and rotation. The arrow
keys, Tab, , , <, > keys with their modifiers all work just as they do in selector,
but apply to nodes instead of objects. You can add nodes anywhere on a path by
either double clicking or by Ctrl+Alt+click at the desired location.

You can delete nodes with Del or Ctrl+Alt+click. When
deleting nodes it will try to retain the shape of the path, if you desire for the
handles of the adjacent nodes to be retracted (not retaining the shape) you can
delete with Ctrl+Del. Additionally, you can duplicate (Shift+D)
selected nodes. The path can be broken (Shift+B) at the selected nodes, or if you
select two endnodes on one path, you can join them (Shift+J).

A node can be made cusp (Shift+C), which means
its two handles can move independently at any angle to each other;
smooth (Shift+S), which means its handles are
always on the same straight line (collinear); symmetric
(Shift+Y), which is the same as smooth, but the handles also have the
same length; and auto-smooth (Shift+A), a special
node that automatically adjusts the handles of the node and surrounding auto-smooth nodes
to maintain a smooth curve. When you switch the type of node, you can preserve the position
of one of the two handles by hovering your mouse over it, so that only the other handle is
rotated/scaled to match.

Also, you can retract a node’s handle altogether by
Ctrl+clicking on it. If two adjacent nodes have their handles
retracted, the path segment between them is a straight line. To pull out the retracted
node, Shift+drag away from the node.

Inkscape Development

The Inkscape Codebase

Inkscape started as a fork of Sodipodi, a GNOME application based on GObject. Inkscape is written in a mixture of C and C++, due to historical reasons. We hope to eventually migrate it to C++. There is still however, a lot of GObject-based code, so some knowledge of GObject is necessary to work with Inkscape.

Inkscape uses the GTK+ widget toolkit and the Glib support library. We are in the process of migrating from GTK+ 2.0 to GTK+ 3.0 for the upcoming 1.0 release. We also use the header-only parts of Boost (i.e. it is a compile-time dependency, but not a runtime dependency). The geometry library lib2geom, written in C++, is intended to eventually become a separate project. You can get the latest version of lib2geom from its Gitlab repository.

Knowing how to program in C++, and use GTK is essential for contributing to Inkscape. Fortunately, these aren’t that difficult to learn, so do read relevant tutorials.

The Inkscape project uses Doxygen to automatically generate source code documentation (including diagrams of the program structure). You can quickly get an overview about the part of the program you’d like to work on here.

Сочетания Alt + Num — как ввести символы, которых нет на клавиатуре

Draw Freely.

Inset and outset

Inkscape can expand and contract shapes not only by scaling, but also by
offsetting an object’s path, i.e. by displacing it perpendicular
to the path in each point. The corresponding commands are called
Inset (Ctrl+() and Outset
(Ctrl+)). Shown below is the original path (red) and a number of paths
inset or outset from that original:

The plain Inset and Outset commands produce paths
(converting the original object to path if it’s not a path yet). Often, more convenient
is the Dynamic Offset (Ctrl+J) which creates an
object with a draggable handle (similar to a shape’s handle) controlling the offset
distance. Select the object below, switch to the node tool, and drag its handle to get
an idea:

Such a dynamic offset object remembers the original path, so it
does not “degrade” when you change the offset distance again and again. When you don’t
need it to be adjustable anymore, you can always convert an offset object back to path.

Still more convenient is a linked offset, which is similar to the
dynamic variety but is connected to another path which remains editable. You can have
any number of linked offsets for one source path. Below, the source path is red, one
offset linked to it has black stroke and no fill, the other has black fill and no
stroke.

Select the red object and node-edit it; watch how both linked offsets respond. Now
select any of the offsets and drag its handle to adjust the offset radius. Finally, note
how you
can move or transform the offset objects independently without losing their connection
with the source.

Working with Code

Please see the for information on becoming a developer of core Inkscape code.

For information on writing Inkscape extensions, please see the .

Packaging Inkscape

If you have the necessary skills and experience to package software, try to find better ways to package Inkscape for your operating system or Linux distribution, and think about offering to do so, when new versions are nearing release dates. Here is some info on packaging Inkscape.

The Inkscape website is being developed in Python, using the Django framework. There are some cool projects going on that can always use some additional help. For more info visit the .

Рисование произвольных линий и кривых Безье

Простейший путь создать произвольную фигуру — нарисовать её при помощи карандаша («Рисовать произвольные контуры» в меню слева (F6)):

If you want more regular shapes, use the Pen (Bezier) tool (Shift+F6):

With the Pen tool, each click creates a sharp node without any curve
handles, so a series of clicks produces a sequence of straight line segments.
click and drag creates a smooth Bezier node with two collinear opposite
handles. Press Shift while dragging out a handle to rotate only one
handle and fix the other. As usual, Ctrl limits the direction of either
the current line segment or the Bezier handles to 15 degree increments. Pressing
Enter finalizes the line, Esc cancels it. To cancel
only the last segment of an unfinished line, press Backspace.

В обоих рассмотренных инструментах выбранный контур содержит маленькие квадратики, якоря, на обоих концах контура. Они позволяют продолжить этот контур (рисуя от одного из якорей) или закрыть контур (рисуя от якоря до якоря).

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *