5

Is it possible to make even distance positioning of lines of different length around circle or curve?

I mean lines have different sizes like on pic.2, but I need they have equal distance around circle like on pic.1. Distance between circle edge and line start. enter image description here

  • 1
    Can't you edit the length of the lines by moving the anchor points? – Billy Kerr Jul 25 '18 at 10:04
7

From where you are now you can just make a circular guide.

  1. draw a circle with a size that will be the new starting point for your lines;
  2. make it a guide (View > Guides > Make Guides or CMD+5 / CTRL+5 for Windows);
  3. select the anchors (the ones near the center) using the Lasso tool (Q), for example
  4. with smart guides enabled, scale your lines (S) and drag until they intersect with the guide

enter image description here

  • 2
    sorry that my image is not centered in the gif :) – Luciano Jul 25 '18 at 13:02
  • Thanks for the expanded answer. Sorry, but I can not get, according to point 4, evenly to move the lines from the circle, what instrument do you use for this? – KFifa Jul 26 '18 at 6:58
  • @KFifa added to the answer. Select the scale tool and just drag the anchors. – Luciano Jul 26 '18 at 8:34
4

There's multiple ways you could achieve this, but most of them are taking a couple steps back: redraw the entire graphic, starting with image 1 and editing that into image 2.

An example:

  1. draw a circle;
  2. draw a vertical line;
  3. drag that vertical line, grabbing it by its bottom anchor, aligning it exactly on top of the circle's top anchor;
  4. switch to the rotate tool, the line still selected;
  5. click on the circle's centre to set that as the rotation source;
  6. Alt+click to open up a dialog;
  7. enter 20° for the angle and click 'Copy' rather than 'OK';
  8. choose 'Object' > 'Transform' > 'Transform Again' (Ctrl/Cmd+D) sixteen times;
  9. separately edit your lines' widths and lengths.
2

A workaround would be to add an additional white stroke to the center circle through the appearance panel (make sure to place it beneath the original black stroke) and give this a very high thickness.

Then, place the circle on top of everything else (Object > Arrange > Bring to Top). This way, the white stroke will cover up the inner ends of your lines, making it look like they all have the same distance to the circle. Adjust stroke with of the white stroke to achieve the desired distance.

  • 1
    It's a good option, but what if we want that in .png format with transparent background? – Sylwester Pilarz Jul 25 '18 at 10:46
  • 1
    For a transparent background, use Save for Web, PNG8. In color table, check the white color then click the icon: Maps selectec color to transparent. – LeoNas Jul 25 '18 at 10:56
  • Why don'you use the "first pic" and change the strokes instead? – LeoNas Jul 25 '18 at 11:04
1

Let's assume your ray lines are drawn quite freely, some are too far away and some are too near the circle center. Drag all starting from the interior of the circle. Don't do it one by one, use effect Distort & Transform > Pucker & Bloat

enter image description here

It's useful in the very beginning copy the circle to the clipboard (you need a copy) and lock the circle to keep it in safe

You can fix the effect (=make the lines again to editable curves) by applying Object > Expand appearance

Now paste in place the circle copy and give to it black fill, scale it to the wanted distance size. Use it as opacity mask for the lines:

enter image description here

As well you can select the lines and the scaled circle and then split all with Pathfinder panel function Outline. You lose all colors and stroke widths, you must put them back manually. Then you must manually delete the unwanted splinters. That's destructive edit. I recommend opacity mask because it can be released and edited. Cipping masks have the same property.

The rays are probably too long now. You can resize or split them manually or insert a clipping mask. Clipping mask can be a compound path and at the same time do the job of the scaled circle, no opacity mask is needed.

Resizing manually is possible in isolation mode. Double-click a ray and drag its bounding box corner, hold Shift at the same time to keep the direction unchanged:

enter image description here

Leave isolation mode with Esc key.

BTW. It's no need to mess with the pucker effect, if you resize the rays one by one. You can as well drag both corners. It was suggested actually in the fist comment you have got.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.