Two different colors in an Illustrator stroke / line

I have this shape and I want to keep the left part black (exactly from the middle) while having the right part grey. Is this possible? If I don’t join the lines, I don’t get the sharp end that I want. If I do, I can’t have two different colours.

enter image description here

Answer

Apply a gradient to the path stroke from black to gray and
set each color location to 50%.

enter image description here

Attribution
Source : Link , Question Author : Constantinos , Answer Author : Community

Leave a Comment