How to make a rectangle in Photoshop with no fill. How to Create Freeform Shapes or Shapes in Photoshop

28.03.2019

As soon as you release your mouse button, Photoshop will fill the shape with the color or other fill type selected in the Options Bar:



As soon as you release the left mouse button, Photoshop fills the shape with a color or other preset fill.

Changing the size of a shape after you've drawn it

After you have drawn your initial shape (in our case, a rectangle), its current dimensions will appear in the input fields "Width" (W, in English - W) and "Height" (H, in English - H ) in the options bar.
Here we can see that my rectangle is 464 pixels wide and 257 pixels high:


The height and width of the shape is shown in the corresponding input fields of the Options Bar.

If you need to change the size of the finished Photoshop Shapes(and this works for all vector shape tools, not just "Rectangle"), just enter your desired size in the "Width" and/or "Height" boxes. For example, let's say I suddenly need to change the width of a rectangle to 500 pixels. All I have to do is enter a value of 500px in the Width box in the Options Bar. If necessary, you can change the height in the same way.

If you want to change the width or height, but still keep the original aspect ratio of the shape, first click on the small chain-shaped icon located between the width and height input fields:


Click this icon if you want the aspect ratio to be maintained when changing the shape's length or width.

How to pre-set the size of a shape before drawing it

If you know in advance the exact width and height of your created figure, Photoshop has an option to build a shape with given dimensions.

To get started, select right tool constructing vector shapes. Then simply left-click anywhere inside the document window, which will open a dialog box where you can enter width and height values. Click OK to close the dialog box and Photoshop will automatically draw the shape you want:



Dialog box for constructing a figure with predefined dimensions.

Drawing shapes from the center

Here are some simple but very useful keyboard shortcuts. If you press and hold the Alt key and start dragging to create a shape, you will start drawing it from the center, not from the corner. This rule works with any of the tools Photoshop shapes, not just with "Rectangle". But when building a figure from the center, one should take into account one important point. Alt key should be held down after how you start to create a figure, i.e. After that, as you press the left mouse button and start dragging the cursor. You should also release Alt After that as you release the left mouse button, i.e. after you finish building the figure:



Press and hold the Alt key to start building the shape from its center. The circle shows the starting point for constructing the figure.

Drawing squares

To draw a perfect square with the Rectangle Tool, click inside the document to set the starting point and start dragging as usual. Once you've started dragging, press and hold the Shift key. This will make the rectangle turn into a square. Again, release Shift only after you release the mouse button. You can also combine the Shift and Alt keys to draw a proper square from the center:

Press and hold the Shift key while dragging to draw a square.

Again, during the process of creating the shape, you will only see an empty path, and as soon as you release the mouse button (i.e., finish creating the shape), Photoshop fills the finished path with color.

Drawing tools allow you to create and edit vector shapes. They make it easy to create various elements for web pages.

The following family of tools allows you to create geometric figures different shape.

Rectangle (Rectangle)() - respectively, allows you to draw a rectangle (and with the key pressed - a square), filled with the foreground color.
Rounded Rectsngle (Rounded straight square)- creates shapes similar to those described above, but allows you to set the radius of the rounding of the corners of the rectangle.

Ellipse (Ellipse)- creates ovals (in combination with the pressed key - circles).
Polygon(Polygon)- allows you to create geometric shapes with an arbitrary number of angles, as well as multi-beam stars. By default creates a convex pentagon.
Line- draws straight lines of arbitrary or specified length, thickness, color and direction.
Custom Shape- allows you to create a geometric figure freeform and save it for later use.

Create new file for training.

Left click on tool - figures - on the toolbar, the tool selection window will open:


Here are the main shapes that we can use. Choose any and look at the options panel:

For any figure, you can choose:

  • drawing mode:
    • shape layer. The shape is created on a separate layer. A shape layer consists of a fill layer that defines the color of the shape, and an associated vector mask that defines the boundaries of the shape. The shape's borders are a path that appears on the Paths tab of the Layers panel.

    • contours. This mode allows you to draw outlines of shapes that can be filled or stroked with an arbitrary color. Paths appear on the Paths tab of the Layers panel.

    • Pixel fill . When working in this mode, not vector, but bitmaps, which can be processed in the same way as any bitmap

  • style and color

  • set parameters specific to this figure

Draw rectangles

Let's choose the first shape - a rectangle. Select from the panel mode - layer-shape. Select a style by clicking on the triangle on the right.

Choose whichever you like. By the way, if you click on the triangle in the circle (on the right), you can select additional styles in the context menu that opens. If you do not want to use a style, then select a white square with a red line through it.

Now you can set the geometric parameters:

  • Arbitrarily - as you draw, so be it.
  • Square - when stretching the shape with the mouse, the width and height will always be the same.
  • Specified size - you can set the width and height of the rectangle (in cm) and click on the canvas. A rectangle with the specified dimensions will appear.
  • Set aspect ratio - you can set how many times the width will be less (or more) than the height. When stretching the figure, the proportion will be preserved.
  • From the center - draws a rectangle from the center.
  • Snap to pixels - rectangle edges snap to pixel borders.

Now select -arbitrarily- and drag your rectangle on the canvas with the mouse. Here, for example, what happened to me when using styles Button, Glass Buttons and Web Styles.



Quite a useful tool for creating buttons and menus for your web pages, isn't it?

Draw rectangles with rounded corners

Let's select the second shape - a rectangle with rounded corners. On the panel, select the mode - the layer-shape, the corner radius - for example, 15 and the color (you can style it as you like). The geometric parameters are the same as for the rectangle.

Here's what I got with various combinations of radius and style.

Why not news blocks and menu buttons?

Draw circles

Let's choose the third figure - an ellipse. On the panel, select the mode - shape layer, color and style. The geometric parameters are the same as for a rectangle, with the only difference being that a circle can be chosen instead of a square. Select -arbitrary- and stretch the ellipse. If you want it to be a circle, then hold down the Shift key or select -circle- in the geometric parameters.

Here's what happened to me:

Draw polygons

Let's choose a shape - a polygon. On the panel, select the mode - layer-shape, the number of sides in the range from 3 to 100 (for example, 3 - for a triangle, 6 - for a hexagon), color and style. Consider the geometric parameters:

  • Radius is the radius of the polygon.
  • Smooth outer corners
  • Star - with the checkbox unchecked, the polygon is convex, with the checkbox checked, the polygon is concave.
  • Beam depth - if the polygon is concave, then its vertices, as it were, form rays. This parameter shows how much of the polygon's radius will be occupied by rays. The higher the %, the longer and sharper the rays.
  • Smooth outer corners - with unchecked the corners are sharp; with a tick, the corners are rounded.

For example:



The first nonagon has a radius of 3 cm, the rest of the boxes are unchecked.

The second nonagon has a radius of 3 cm, the checkmark is -star-, the depth of the rays is 25%, the rest of the checkboxes are unchecked.

The third nonagon has a radius of 3 cm, the depth of the rays is 50%, all the checkboxes are checked.

All have a style applied.

Draw lines

Let's choose a figure - lines. On the panel, select the mode - layer-shape, line thickness (in pixels), color and style. Consider the geometric parameters:


If all the checkboxes are cleared, it will be just a line, the parameters set the arrows at the ends of this line.

  • Start- arrow at the beginning of the line.
  • End- arrow at the end of the line.
  • Width- proportions of the arrow as a percentage of the line thickness (from 10% to 1000%).
  • Length- proportions of the arrow as a percentage of the line thickness (from 10% to 5000%).
  • Curvature- determines the degree of curvature of the widest part of the arrow in the place where it meets the line (from -50% to +50%).

For example:



The first line is unchecked, width - 500%, length - 1000%, thickness - 2 pixels.

The second line has everything the same, but there is a tick at -beginning- and curvature - 5%.

The third line has everything the same, but the -end- checkbox is ticked and the -beginning- checkbox is unchecked.

The fourth line has both checkboxes, width - 500%, length - 1000%, curvature - 15%, thickness - 5 pixels.

All have a style applied.

We draw arbitrary figures

Let's choose a figure - an arbitrary figure. On the panel, select the mode - shape layer, color and style. The geometric parameters are the same as for a rectangle. But here there is a choice of the figure itself:


Draw multiple shapes on one layer

The principle here is the same as with tools. rectangular selection(in the first lesson, we made a non-standard selection area using the tools on the options bar: add to selection, subtract from selection, etc.). The same tools are available in the Shapes Options bar.

For example, create a rectangle shape, now in the options bar click on the "add to shape area" icon, and now select an ellipse shape. Move the mouse cursor to the upper border of our rectangle, press the left mouse button and, without releasing, stretch the ellipse. It should look something like this:

If the ellipse is not stretched as you would like, you can fix it. To do this, take on the toolbar Path selection tool-

Move the cursor to the border of the ellipse and, holding down the left mouse button, drag the ellipse where it should be. Using all these tools, you can draw shapes of varying complexity.

Save Shapes

Let's say we liked the last shape we created and want to use it in the future. To do this, you need to save it. For this menu Edit -> Define Custom Shape. Give a name to the new shape.

Now our shape has appeared in the drop-down panel for selecting arbitrary shapes.

Drawing tools allow you to create and edit vector shapes. They make it easy to create various elements for web pages.

Create a new training file.

Click the left mouse button on the tool -shapes- on the toolbar, the tool selection window will open:

Here are the main shapes that we can use. Choose any and look at the options panel:

For any figure, you can choose:

  • drawing mode:
    • shape layer. The shape is created on a separate layer. A shape layer consists of a fill layer that defines the color of the shape, and an associated vector mask that defines the boundaries of the shape. The shape's borders are a path that appears on the Paths tab of the Layers panel.

    • contours. This mode allows you to draw outlines of shapes that can be filled or stroked with an arbitrary color. Paths appear on the Paths tab of the Layers panel.

    • Pixel fill. When working in this mode, not vector, but raster images are created, which can be processed in the same way as any raster image

  • style and color

  • set parameters specific to this figure

Draw rectangles

Let's choose the first shape - a rectangle. On the panel, select the mode - layer-shape. Select a style by clicking on the triangle on the right.

Choose whichever you like. By the way, if you click on the triangle in the circle (on the right), you can select additional styles in the context menu that opens. If you do not want to use a style, then select a white square with a red line through it.

Now you can set the geometric parameters:

  • Arbitrarily- as you draw, so be it.
  • Square- when stretching the shape with the mouse, the width and height will always be the same.
  • Specified size- you can set the width and height of the rectangle (in cm) and click on the canvas. A rectangle with the specified dimensions will appear.
  • Set aspect ratio- you can set how many times the width will be less (or more) than the height. When stretching the figure, the proportion will be preserved.
  • From the center- draws a rectangle from the center.
  • Snap to pixels- rectangle edges snap to pixel borders.
Now select -arbitrarily- and drag your rectangle on the canvas with the mouse. For example, here is what I got when using the Button, Glass Buttons and Web Styles styles.

Quite a useful tool for creating buttons and menus for your web pages, isn't it?

Draw rectangles with rounded corners

Let's select the second shape - a rectangle with rounded corners. On the panel, select the mode - the layer-shape, the corner radius - for example, 15 and the color (you can style it as you like). The geometric parameters are the same as for the rectangle.

Here's what I got with various combinations of radius and style.

Why not news blocks and menu buttons?

Draw circles

Let's choose the third figure - an ellipse. On the panel, select the mode - shape layer, color and style. The geometric parameters are the same as for a rectangle, with the only difference being that a circle can be chosen instead of a square. Select -arbitrary- and stretch the ellipse. If you want it to be a circle, then hold down the Shift key or select -circle- in the geometric parameters.

Here's what happened to me:

Draw polygons

Let's choose a shape - a polygon. On the panel, select the mode - layer-shape, the number of sides in the range from 3 to 100 (for example, 3 - for a triangle, 6 - for a hexagon), color and style. Consider the geometric parameters:

  • Radius is the radius of the polygon.
  • Smooth outer corners
  • Star- with the checkbox unchecked, the polygon is convex, with the checkbox checked, the polygon is concave.
  • Beam depth- if the polygon is concave, then its vertices, as it were, form rays. This parameter shows how much of the polygon's radius will be occupied by rays. The higher the %, the longer and sharper the rays.
  • Smooth outer corners- with unchecked the corners are sharp; with a tick, the corners are rounded.
For example:

The first nonagon has a radius of 3 cm, the rest of the boxes are unchecked.

The second nonagon has a radius of 3 cm, the checkmark is -star-, the depth of the rays is 25%, the rest of the checkboxes are unchecked.

The third nonagon has a radius of 3 cm, the depth of the rays is 50%, all the checkboxes are checked.

All have a style applied.

Draw lines

Let's choose a figure - lines. On the panel, select the mode - layer-shape, line thickness (in pixels), color and style. Consider the geometric parameters:

If all the checkboxes are cleared, it will be just a line, the parameters set the arrows at the ends of this line.

  • Start- arrow at the beginning of the line.
  • End- arrow at the end of the line.
  • Width- proportions of the arrow as a percentage of the line thickness (from 10% to 1000%).
  • Length- proportions of the arrow as a percentage of the line thickness (from 10% to 5000%).
  • Curvature- determines the degree of curvature of the widest part of the arrow in the place where it meets the line (from -50% to +50%).
For example:

The first line is unchecked, width - 500%, length - 1000%, thickness - 2 pixels.

The second line has everything the same, but there is a tick at -beginning- and curvature - 5%.

The third line has everything the same, but the -end- checkbox is ticked and the -beginning- checkbox is unchecked.

The fourth line has both checkboxes, width - 500%, length - 1000%, curvature - 15%, thickness - 5 pixels.

All have a style applied.

Draw arbitrary shapes

Let's choose a figure - an arbitrary figure. On the panel, select the mode - shape layer, color and style. The geometric parameters are the same as for a rectangle. But here there is a choice of the figure itself:

If you click on the triangle in the circle (on the right), you can select additional shapes in the context menu that opens.

Draw multiple shapes on one layer

The principle here is the same as with the rectangular selection tools (in the first lesson, we made a non-standard selection area using the tools on the options bar: add to selection, subtract from selection, etc.). The same tools are available in the Shapes Options bar.

For example, create a rectangle shape, now in the options bar click on the "add to shape area" icon, and now select an ellipse shape. Move the mouse cursor to the upper border of our rectangle, press the left mouse button and, without releasing, stretch the ellipse. It should look something like this:

If the ellipse is not stretched as you would like, you can fix it. To do this, take the tool -outline selection- on the toolbar:

Move the cursor to the border of the ellipse and, holding down the left mouse button, drag the ellipse where it should be. Using all these tools, you can draw shapes of varying complexity.

Save Shapes

Let's say we liked the last shape we created and want to use it in the future. To do this, you need to save it. For this menu Edit -> Define Custom Shape. Give a name to the new shape.

Now our shape has appeared in the drop-down panel for selecting arbitrary shapes.

This lesson is over. Next time we'll focus on paths and bitmaps.

In Photoshop, you can draw several options for a square. A filled square and a square with a frame. It is better to draw squares through vector objects, specifically through the "Rectangle Tool" ( Rectangle tool).

Rectangle tool (Tool Rectangle)

Select the shapes (horizontal key U), then Rectangle tool (Rectangle Tool), see screenshot below.

Set the "Fill Pixels" property.

Select the fill color of the square (the first color in the toolbar), draw a square with the Shift key pressed.

Square with frame

The square should be drawn on a new empty layer, without any fill. You can create a new layer by simultaneously pressing Alt + Ctrl + Shift + N .

  1. Install Paths (in Russian, the path);
  2. Draw a square with the shift key pressed;

Convert vector square to selection (Select) by pressing Ctrl + Enter .

Color the selection (in this case, white).

Alt + ← BackSpace is the first selected color.

Ctrl + ← BackSpace is the second selected color.

Right-click on the square layer and select Blending Options (Overlay options).

In styles select "Stroke" and set the frame width in pixels and the frame color. You can experiment with other options.

The result is a square with a red border that is 3 pixels thick.

Although a square and a rectangle are the simplest geometric shapes, but in order to draw them in Photoshop, you need to make some effort and have basic knowledge. A beginner without proper training, most likely, will not cope with this task.

In this article, we will analyze the 3 most popular ways to draw a rectangle or square in Photoshop.

But before you start choosing a drawing method, you need to decide on future parameters. Rectangle/square can be:

  • filled with a solid color or only with borders drawn;
  • arbitrary or with precisely specified dimensions;
  • with the ability to change its size at any time without loss of quality.

Method 1. Arbitrary shape tool

In this method, the rectangle or square will be drawn with a solid color. If you only need the border, go to the next two methods.

Select the tool from the toolbar. There are two possible scenarios for the development of events:

Option 1. Square or rectangle with further resizing without loss of quality

Here, of course, the use of a vector figure is implied. To draw it, you need to select an option shape layer:

In the future, you can resize this figure without losing quality. To do this, use the tool - Ctrl + T , and use the corner handles to resize.

For those who don't know: vector shapes are not composed of pixels, but of special mathematical formulas. Therefore, resizing is not a process of stretching / shrinking pixels, but a complex mathematical recalculation, due to which there is no loss of quality.

Option 2. Standard (raster) square/rectangle

To draw a raster shape at once, use the setting on the Options Bar Perform pixel fill. But before you start drawing it -!

But in fact, you can draw immediately and vector, and then just it. Here you can choose for yourself.

How to make a rectangle square

The usual rule with the Shift key pressed does not work with arbitrary shapes. Therefore, you need to use the tool options panel and select a setting so that Photoshop draws a square.

In the same panel, pay attention, you can specify the exact size of the required rectangle/square or draw it according to predetermined proportions.

By default, dimensions are determined by pixels. If you want to change the unit of measurement, first enter a value in the field, and then right-click on it. The unit selection window will appear. Available: pixels, inches, centimeters, millimeters, points and peaks.

Rectangle or square with rounded corners

To get a shape with rounded corners, do the same as described above, but at the very beginning select the tool Rectangle with rounded edges. In the tool options bar, you only need to specify radius rounding.

Method 2. Stroke the selection

This method is as simple as 5 cents. select the tool and draw a rectangle with a dotted line. To draw a square, hold down the Shift key.

Now we need to stroke the borders of this selected area. To do this, go to Editing - Stroke.

Then, in the new window, set the stroke type: specify the frame thickness, the desired color and mark how the stroke will go:

  • Inside- so the frame will lie on the inside of the selected area;
  • Centered- so the frame is divided equally into a part passing inside the selection and into a part from the outside;
  • Outside- means the frame will go around the dotted selection line.

Here's how it might turn out:

In the screenshot above, I deliberately did not remove dotted line, since it will not disappear for you either. To finally get rid of it, press Ctrl + D .

In this method, in order to draw a shape of the exact size, you first need to specify in the tool options bar StyleSpecified size or given proportions. After that, the fields will become active, where you enter the width and height values ​​in pixels. Right-clicking on one of these fields will bring up a menu for changing the units of measurement.

Method 2.1 Filling in the selection

The most common way to draw a rectangle is to draw a selection box (as described above) and simply fill it with any color. Here is a rectangle or square for you.

Method 3. Modification of the selection

In fact, I like this method least of all because of the obvious minus - the corners of the rectangle will be clipped, and the border of the frame itself is in a state and it is not possible to influence these facts.

So, you need to select the tool again, draw the frame of the future rectangle or square (with the Shift key), and then go to the menu Selection and choose a team Modification - Border.

A new window will appear in which, in our case, we specify the width of the border of the rectangle. Let's say I specify 7 pixels. We get the following result:

And now you just need to paint over the resulting frame. Suitable for this. Here, by the way, you can approach the issue more creatively and paint over, for example, with different colors. Result:

It remains only to remove the selection - Ctrl + D. I think this method is only suitable for my rare specific tasks, since feathering and undercut corners only spoil everything.

Noticed an error in the text - select it and press Ctrl + Enter . Thank you!



Similar articles