## How can I create a double helix?

### Question

I want to create intersected curved line like this

, I use `Pen Tool` but can not get the same as this , and searched a lot for already built through google , but all I got were curve lines not like this, any tutorial or any idea?

2014/01/03
1
5
1/3/2014 12:25:00 AM

### Accepted Answer

There are a lot of ways of doing it but the first tool or idea that came into my mind is using the pen tool.

![First, you have to grab your pen tool and draw the one shape like this (apparently I suck with the pen tool as well so you might wanna tweak yours a bit more).Create a new layer then fill this with any color. Then add your gradient to it. Select your layer then duplicate, grab your marquee tool then right click>flip horizontal. Lastly, merge your duplicate and your first layer, and tweak it till you get your desired curves. You might wanna duplicate this again to make a DNA effect (duplicate>flip vertical). I hope this helps!1

3:

4:

5:

2013/12/29
3
12/29/2013 12:14:00 PM

A know this is an old post but I feel like I should say something. Please have a look at something I created on http://isabel.rosety.com. The I use generates SVG from PHP code, so you can dynamically compute and generate different results according with the paremeters you prepare in your code.

There is another post related to DNA double helix on this stackexchange post. Here's the main takeaway:

I have been "playing" with this kind of helix lately. I use a PHP library that I developed to generate SVG and the image I generate is SVG. If you talk about straight double helix, the solution is not difficult since it can be generated with my scripts and the helix is based on the mathematical expression:

``````  x = r * cos(t);
y = r * sin(t);
z = k * t;
``````

I also generate plasmid-like DNA helix i.e. circular double helix.
Please have a look at
http://veleta.rosety.com

(Edited 2015/12/17) I have changed the script and instead of PHP I am currently producing the DNA on HTML5 canvas.

The resulting DNA Helix is in PNG format (once you are happy with the results you ca save it right-clicking on it) Example

2016/11/26