Krita/Manual/VectorLayers

< Krita‎ | Manual
Jump to: navigation, search
Under construction.png
 
Under Construction
This is a new page, currently under construction!


Dialog-information.png
 
Information
This manual is a rewrite of the 1.6 manual. It is not complete.



Vector/Shape Layers

What is a vector layer?

A vector Layers also known as a shape layer is a type of layer that contains only vector elements.

This is how vector layers will appear in the Krita layer manager.

Vectorlayer.png

It shows the vector contents of the layer on the left side. The icon showing the page with the red bookmark denotes that it is a vector layer. To the right of that is the layers name. Below are the eye and the padlock icon. Clicking the eye will toggle visibility. Clicking the lock into a closed position will lock the content and editing will no longer be allowed until it is clicked again.

Creating a vector layer

You can create a vector layer in two ways. Using the extra options from the add layer button you can click the "shape layer" item and it will create a new vector layer. You can also drag a rectangle or ellipse from the Add shape dock and if a paint layer is selected then a new vector layer will be created. If a vector layer is already selected, then the shape will be added to that layer.

Warning.png
 
Warning
There is currently a bug regarding shape layers. If a shape layer is active and the standard draw tools are used:

Drawtools.png

The correct and expected result should be that those shapes will be added as vector shapes to the current vector layer. However this does not work with the rectangle tool, ellipse tool, polygon tool, or polyline tool. A new layer is created when a user tries to add these shapes. This is a bug and is being worked on. (Note that if a paint layer is selected, the shapes from the toolbar will be drawn as a painted element and not as a vector element. This is normal behavior)


Editing Shapes on a vector layer

Basic Shape Manipulation

Once you have created a vector layer and you have created a vector shape on that layer you will most likely want to edit the shape and colors of your vector element. In order to select and manipulate a shape on a vector layer you will need to use the basic shape manipulation tool.

Basicshapemanip.png

Once you have selected this tool. Click on the element you want to manipulate and you will see guides appear around your shape.

Vectorguides.png

There are four ways to manipulate your image using this tool and the guides on your shape.

  • Transform/Move
Transform.png

Using this feature of the tool allows you to move your object by clicking and dragging your shape around the canvas. Holding Ctrl will lock your moves to one axis.

  • Size/Stretch
Resize.png

Using this feature of the tool allows you to stretch your shape. selecting a midpoint will allow stretching along one axis. Selecting a corner point will allow stretching across both axis. Holding Shift will allow you to scale your object. Holding Ctrl will cause your manipulation to be mirrored across your object.

  • Rotate
Rotatevector.png

Using this feature of the tool will allow you to rotate your object around its center. Holding Ctrl will cause your rotation to lock to 45 degree angles.

  • Skew
Skew.png

Using this feature of the tool will allow you to skew your object.

Note-box-icon.png
 
Note
At the moment there is no way to scale only one side of your vector object. The developers are aware that this could be useful and will work on it as manpower allows.


Point and Curve Shape Manipulation

By double clicking on a vector object you are able to edit the specific points or curves which make up the shape. Click and drag a point to move it around the canvas. Click and drag along a line to curve it between two points. Holding Ctrl will lock your moves to one axis.

Pointcurvemanip.png

Stroke and Fill

Besides being defined by points and curves a shape also has two defining properties: Fill and Stroke. Fill defines the color, gradient, or pattern that fills the space inside of the shape object. Stroke defines the color, gradient, pattern, and thickness of the border along the edge of the shape. These two can be edited using the Stroke and Fill dock. The dock has two modes. One for stroke and one for fill. You can change modes by clicking in the dock on the filled square or the black line. the active mode will be shown by which is on top of the other.

Here is the dock with the fill element active. Notice the red line across the solid white square. This tells us that there is no fill assigned therefore the inside of the shape will be transparent.

Strokeandfill.png

Here is the dock with the stroke element active.

Strokeandfillstroke.png

Editing Stroke Properties

The stroke properties dock will allow you to edit different aspect of how the outline of your vector shape looks.

Strokeprops.png

The style selector allows you to choose different patters and line styles.

The width option changes the thickness of the outline on your vector shape.

The cap option changes how line endings appear.

The join option changes how corners appear.

The Miter limit controls how harsh the corners of your object will display. The higher the number the more the corners will be allowed to stretch out past the points. Lower numbers will restrict the stroke to shorter and less sharp corners.

Editing Fill Properties

All of the fill properties are contained in the Stroke and Fill dock.

Strokeandfill.png

The large red X button will set the fill to none causing the area inside of the vector shape to be transparent.

To the right of that is the solid square. This sets the fill to be a solid color which is displayed in the long button and can be selected by pressing the arrow just to the right of the long button.

To the right of the solid square is the gradient button. This will set the fill to display as a gradient. A gradient can be selected by pressing the down arrow next to the long button.

Under the X is a button that shows a pattern. This inside area will be filled with a pattern. A pattern can be chosen by pressing the arrows next to the long button.

The two other buttons are for fill rules: the way a self-overlapping path is filled.

  • The button with the inner square blank toggles even-odd mode, where every filled region of the path is next to an unfilled one, like this :

Fill rule even-odd.svg

  • The button with the inner square filled toggles non zero mode, where most of the time a self overlapping path is entirely filled except when it overlaps with a sub-path of a different direction that 'decrease the level of overlapping' so that the region between the two is considered outside the path and remain unfilled, like this :

Fill rule non-zero.svg

For more (and better) informations about fill rules check the Inkscape manual.



This page was last modified on 15 August 2012, at 20:16. This page has been accessed 2,098 times. Content is available under Creative Commons License SA 3.0 and the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal