Or you could use a vector (e.g. inkscape, AI) to do it and import the result into photoshop.