Link Search Menu Expand Document

Adding Quadratic Curve Segments

A Quadratic Curve is a line segment with two end points and a control point that determines the exact curve to be drawn. The figure below illustrates an example of a quadratic curve.

Two core gestures are used when creating path segments. A Single Click adds an end point, and a Click/Drag combination adds an end point with a corresponding control point.

Since a Quadratic Curve contains two end points and one control point, the above-mentioned core gestures provide two ways to create this type of path:

  • Performing a Single Click and then a Click/Drag combination.
  • Performing a Click/Drag combination and then a Single Click.

For example, the Path Tool can be used to draw a shape resembling the fireplace below by combining 3 line segments and one quadratic curve segment.

The following instructions outline the steps for accomplishing this shape.

  1. Select the Path Tool.

  2. Click (but do not release) on the Drawing Canvas at the location where the starting point for the path should be established. Any of the corner points could be a starting point for creating this shape; however, the upper left corner point is the starting location for this tutorial. Next, drag the segment to the established control point location without releasing the click action. TouchDraw 2 will draw a lashed line from the start point to the control point while the dragging action is performed and then show a slightly transparent circle in the control point location upon completion.

    A control point is displayed in gray when it has not been used and is referred to as a “phantom” control point. This characteristic provides a hint to the TouchDraw 2 application that it should function as a control point in scenarios where the next drawn segment is a curve. The control point is ignored when a straight line segment is added.

  3. Next, click on the drawing canvas location where the second corner of the path should be (the upper right-hand corner). This action creates a quadratic curve between the two end points, with the added control point functioning as an indicator to TouchDraw 2 as to how to draw the curve.

    The handles for curve control points are green. The color and look of the control points indicate how they relate to the selected shape. Refer to the handles reference page to learn about the types of handles.

  4. Next, click on the drawing in the location where the third corner of the path should be. As in the previous examples, it will have drawn a line from the last created point to the new point.

  5. Next, click on the drawing in the location where the fourth corner should be. Again, the same results are provided as before.

  6. To close the shape, Click on the start point (the orange handle with a white dot in it). This action closes the shape and exits the path tool (assuming sticky mode has not been enabled).

In addition to the approach above, the same figure can be drawn performing these actions in a slightly different order, as shown below:

  1. Click in the upper left-hand corner to create the first point of the curved portion of the fireplace.

  2. Perform a Click/Drag combination at the location where the ending point of the curve segment should be. Drag the “phantom” control point outward to the right and bottom until the desired curve has been created.

    Performing an Option/Click combination on any location in the drawing canvas alters the position of the “phantom” control point to the selected location. Refer to the Path Tool section to learn more about this action.

  3. Add a line to the next corner in the shape by clicking where the next end point should be located.

  4. Obviously, this is not the desired result. If a “phantom” control point exists and a Click is performed on the drawing, TouchDraw 2 will use this control point to create a quadratic curve segment. In this case, the “phantom” control point should be ignored and discarded. Select the Edit Menu and choose Undo or use the Command-Z keyboard shortcut to remove this last addition.

  5. To draw a straight line from the last end point to the new end point, use the Shift Key as the path end point is selected. This action instructs TouchDraw 2 to ignore the “phantom” control point and draw a straight line.

  6. Click on the next corner end point to create the bottom of the fireplace.

  7. To close the shape, Click on the start point (the orange handle with a white dot in it). This action closes the shape and exits the path tool (assuming sticky mode has not been enabled).


Copyright © 2010-2022 Elevenworks LLC. All rights reserved.