First time at my blog? Check out the table of contents! x
posted on Monday, May 11, 2009 12:04 PM | Filed Under [ Silverlight ]

For today’s Silverlight animation I am posting another experiment based Jamie Macdonald’s “In Line” animations from Flash Math creativity.

There are two things to note about this animation. First, the vertical oscillation of each ball is calculated using Sine and Cosine. One line of balls uses Sine, while the other line uses Cosine. This causes the lines to always be moving in opposite directions.

The second interesting thing in this animation is that I was able to animate the brightness of the ball color using a Sine wave. So far I am finding color manipulation a bit more tricky in Silverlight than in Flash. Actionscript provides a ColorTransform class that allows you to change the brightness of a color. With Silverlight there doesn’t seem to be a direct way to control brightness like that. You really have to just play around with the RGB values arbitrarily in order to color brightness.

Enjoy!

image

In Line Animation

In Line Animation Source Code


Edit: View Parth I.IV of the Silverlight Math Creativity series here.

 

Technorati Tags: ,,
Comments Leave Yours... No comments posted yet.

Post Your Comment

Title
Required
Name
Required
Email
Optional
Url
Optional
Comment  
Please add 5 and 4 and type the answer here:

Who Is Rafe

rafe

Rafe Kemmis

I am an audacious web developer with a double bachelor of science in Computer Science and Mathematics. I specialize in Microsoft ASP.Net, Silverlight, and Adobe ActionScript.

Questions?

Always a thoughtful response. You may post your question on an article, or contact me directly.

Hire Me.

I provide custom solutions to complex problems. I can help your business no matter how large or small.

Contact me now.

Subscribe