Line with round endings


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?

4/13/2017 12:46:00 PM

@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)

10/18/2016 5:52:00 PM