I want to do a line with rounded endings in Photoshop:

enter image description here

This answer gives a partial solution. But when adding a line + a circle, the shades are slightly different for the circle and the line, resulting in an amateurish result:

enter image description here

I tried to increase/reduce the radius of the circle of a few pixels, but it doesn't change anything.

Is there a cleaner solution to do lines with round endings with Phothoshop (CS5)?

If not possible at all, how to do it, at least with Illustrator?

  • 2
    Is this a simplified example? Could you use Rounded rectangle tool?
    – Joonas
    Oct 18 '16 at 11:52
  • @Joonas I spent almost 2 hours on this problem, if I put all the attempts together, so +10000 ! Can you post it as an answer?
    – Basj
    Oct 18 '16 at 13:40
  • @Joonas: how to do it with a constant thickness, let's say always 15px? When I use rounded rectangle tool, I have to drag the mouse to set the width... It's difficult to find a precise width of 15px. And if I do Transform after, I can move to 15px, but the rounded end won't be a circle anymore...
    – Basj
    Oct 18 '16 at 13:45
  • Try clicking the document once and you should be able to insert width and height there. Also, you could also use Direct selection tool to make a selection of one half of the rounded rectangle and move all the selected points pixel by pixel with the arrow keys.
    – Joonas
    Oct 18 '16 at 14:20
  • @Joonas Try clicking the doc once... : I couldn't make it work. Do you have more info? Direct selection tool + move all selected points : it transforms the ending-circle into something which is not a circle anymore
    – Basj
    Oct 18 '16 at 14:59

@Basj, I think @Joonas was directing you to click the document once while the Rounded Rectangle Tool is selected. It will bring up a dialog box that allows you to choose the object's dimensions:

enter image description here

Then if you click the artboard again, the last-used dimensions will already be populated in the dialog box (even if you have clicked/used other tools since then).

(Don't want to steal the credit for Joonas' answer, but I couldn't post a screenshot in the comments)

  • Thanks for your answer. When I click once the document (even once Rounded rectangle selected), nothing happens. I cannot get this dialogbox. I'm using Photoshop CS5. Any idea?
    – Basj
    Oct 18 '16 at 18:01
  • Ah, that's why... the instructions I gave are for Illustrator, I don't know that Photoshop CS5 has that option... I'm using PS CC2015.5, and it does give me the dialog box, but I don't remember if CS5 does. I'm pretty sure it'll still work in Illustrator CS5 though.
    – DLev
    Oct 18 '16 at 18:37

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.