home page icon Flash Bestiary / Natural Phenomena / Deep Blue Sea
   

Deep Blue Sea

When working on the spring-physics movies in the next chapter, I noticed that a line of points connected by springs resembles the surface of a body of water.

In this movie I exploit that property to create a cartoon ocean, which consists of 7 chains of points, connected by imaginary springs.

I periodically introduce randomness into the systsem to get some motion going, and the spring-system makes the lines behave in a sinuous manner.

A color blending function is used to blend the water color into the background color, creating a fog effect.

 

sourcecode iconDownload the flash project
book iconJim's Favorite Actionscript Books
wiki iconAsk Jim about Actionscript
Next: Flying thru Clouds

Having trouble opening the project? You may need to Upgrade to Flash MX 2004



Copyright © 2003,2004 by Jim Bumgardner. All Rights Reserved.        Leave Jim some feedback