Doug Rudolph


DNA Helix

Posted on March 28th, 2018

Trig functions, take number 2 - plus a happy accident.



So recently, I've just been obsessed with using trig in my animations. I felt that my previous Wrapping Waves post didn't create the illusion I wanted, so I decided to give it another go. Also, I noticed that my last post didn't come off as nicely because I accidentally used both Math.sin() and Math.cos() - rather than just picking one trig identity. I'll make note to not do that again.

Anyways, because I was able to reuse a lot of the logic from Wrapping Waves, I was able to spend more time experimenting here. So, If you look at all the different Helix objects from left to right, you can actually see that the far most right Helix object is made up of all the individual Helix objects that come before it. The only reason this happened was because there was a bug that didn't update the x-pos of each helix, thus all Helix objects were overlaid atop one another.

This bug was oddly hard to fix, but it gave me some cool ideas for my next animation.

Anyways, this was just a short fun post. As always, until next time!