Skip to main content

The structure

 

The structure

The content of a vector mask (or a shape layer) is called a Shape. The Shape consists of several Paths. A Path consists of multiple Knots. Each knot consists of three points: the anchor and two handles.

Here we see a shape consisting of four paths. The path on the right consists of five knots. The knot consists of an anchor (in the middle) and two handles.

Path

There can be several paths within a shape. Paths have a fixed order (the first, the second, the third ...). Each path has some boolean operation, which defines, how the path (e.g. the fourth path) is combined with the content under it (i.e. paths 1, 2 and 3). Boolean operations are UnionSubtractIntersect and Exclude.

Here we see four shapes with two paths in each shape. The second path (the ellipse) has different boolean operations.

When all paths have the Union operation, their order is not important. But e.g. when some path has a Subtract operation, reordering paths may produce a different result.

Paths can be open or closed. Open path means, that the first and the last knot are connected with a straight line (ignoring the adjacent handles).

Knots

A path consists of a sequence of knots. Each two consecutive knots are connected with a curve segment, that is shaped by adjacent handles. A knot can be linked / smooth (both handles are located in a line with the anchor) or unlinked / corner (handles have arbitrary locations). A linked knot guarantees the smooth curve, while an unlinked knot usually creates a corner.

A linked knot is visualised with a circle anchor, while an unlinked one has a square anchor.

The handle of the knot is collapsed, when it is located at the location of the anchor point. When all knots in a path have collapsed handles, then the path consists only of straight line segments (i.e. it is a polygon).

The Look

While vector masks simply hide the portion of a layer, Shape Layers have more interesting properties. Each Shape Layer has a Fill and a Stroke value. Fill and Stroke can have one of four values: None, Color, Gradient and Pattern. Combine different values of Fill and Stroke to create various styles. Have a look at possible combinations.

Stroke can have many parameters: Line thickness, position: Inside, Center, Outside, corner shape, gaps (dashed line) etc. When your shape contains just a single open path, the first and the last knot will not be connected inside a stroke.

Change the look

When any vector tool is enabled (e.g. a Pen tool or a Rectangle tool), the top menu shows the Fill and the Stroke parameters of a current shape layer. You can change these parameters there.


Comments

Popular posts from this blog

Introduction To Photopea

  Introduction Photopea is an advanced image editor, which can work with both raster and vector graphics. You can use it for simple tasks, such as resizing images, as well as complex tasks, such as designing webpages, creating illustrations, processing photographs and more. This website will teach you how to use Photopea  step by step . We will start with basic tasks and gradually progress to more complex features. The chapters (on the left) have been organized, such that each chapter uses only the knowledge from previous chapters, so you can learn effectively and efficiently. Colors Right now, Photopea works with the sRGB color space (the basic color space for the web), with the 8-bit color depth. All exported files use sRGB, too. Starting and using Photopea Photopea editor works in a web browser. It can be started by going to  www.Photopea.com . Photopea can run on any device (desktop, laptop, tablet, phone or any other computer), but for the best comfort, we recommend having a big s

Guides, Grid and Snapping

  Guides, Grid and Snapping Precise position of image elements can be very important. The basic tool, which can help us align image elements, are  rulers . Rulers can be enabled in View - Rulers. But there are several other ways how to align elements precisely. Guides There can be multiple guides in a PSD document. A guide is a horizontal or a vertical line, which is displayed over the document and can help you align elements. To add or delete a guide, select the Move tool and enable rulers. To add a guide, click on the ruler and drag the mouse into the document. To delete a guide, click on it and drag it onto the ruler. To move existing guides, click on them with a Move tool and drag them to a new location. Grid Designers often need to place some elements regularly, with an equal distance between them. Instead of adding many guides with the same spaces between them, we can use the  grid . A regular grid will be displayed over your document, which can help you align other elements. Pix

Text

  Text P utting text into images is an essential operation of image editing. Photopea offers a rich set of tools for working with text. Text is stored in PSD documents inside   Type Layers , which have a thumbnail with a capital letter T on it. There are three kinds of Type layers: Point text  - defined by the point of origin. The text starts at that point and continues on a single line until the line break (Enter). Paragraph text  - defined by the rectangle. Paragraphs are broken automatically into multiple lines to fill the rectangle. Text on a curve  - defined by a curve, letters are arranged along the curve. Creating a Type layer The  Type tool  is used for working with Type layers:  . To create a  Point text , choose a Type tool and click (press and release) the mouse at some place, which will become the origin. To create a  Paragraph text , press the mouse and drag it to draw a rectangle, then release the mouse. After creating the new Type layer, you can start typing. If you clic