First time here? First time here? Newsletter Signup Newsletter
651326 Members and growing! | Flash Jobs
Search tutorials

I have multiplied by several factors to make it easy to increment the sin wave, and to make the wave flow as I have desired.

By incrementing the variable youstarted with, you can actually make the sin wave move, in a whipping fashion. This is essentially the same as drawning only part of the sin wave and moving the viewable region along the graph.

At this point you should have a very impressive sin wave. To add depth, you could simply use cosine (abbreviated cos), which has the property of being -1 to 1, but starts off and disaligns the sin function. In essence, when sin is 0, cos is either -1 or 1. This is perfect for distance perception, if you are trying to get the cylindrical effect of DNA as we currently are.

All you have to do is scale the balls, using cos(someStartValue + x * PI/180), the exact parameter you sent to sin!

If you don't know how to do the flash behind this theory, look at my source, and LOL have fun changing numbers, that's always kewl.

For dynamicability, if that's even a word, I didn't use proper radians in my parameter, so the DNA strands go in and out of sync, which I thought looked pretty kewl. Hope this reveals some of the mysteries of how simple most DNA graphics are!

» Level Intermediate

Added: 2004-09-12
Rating: 4 Votes: 39
(10 being the highest)
» Author
Please visit my site and/or email me if you want more tutorials from me!
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: S.Saipriya
» Title: Flash Fire Effect
» Description: This tutorial explains about how to create Fire Effect in Flash of Actionscript 2.0.I hope this tutorial helps you!
Featured Sound Loops
Image for equalize

Audio Player

» Author: Aidan Crouzet-Pascal
» Title: Falling Star
» Description: This loop is a cool sounding, E minor loop.
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Brandan Paulin
» Description: Epic sounding loop with Brass, Percussion, Strings and Winds. This is actually part of a Loop Pack called the Coming where you can download the rest of the loops that go with it FREE from my website.