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: doc_chin7
» Description:

The flash's horizontal road drive was done in CS4 and was upgraded to CS6. The car responds to right/ left key and flash will auto-generate the movement of roads from left-right or right-left based on random number. Have fun driving in this virtual environment and avoid other cars... :) If you are creative, a road driving game can be created from it.

Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
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: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.