Animation - Vibrating string

SSb

Member
Joined
Sep 28, 2005
Messages
14
Programming Experience
Beginner
Hello,
I'm trying to explore animations in VB.net, in particular to animate a vibrating string. One way I could think of is to draw successive images of the string while erasing the previous ones. Any ideas about a better way?

Also, is it possible to move (translate) rotate stretch graphical objects in VB .net ? Any online recourse which might explain this would be of help.

Thanks

Saurabh
 
Last edited:
Using GDI+ animate, rotate, stretch etc. graphical objects is very possible and much more than this.
However, i have attached a simple project below. U will see that some animations not always needs GDI+ (all you need is simple trick if i may). In this case i've used a Label and Timer and just a two line of code and it got vibrating :D
The second example demonstarate how to animate gradient. I guess it will give you an idea and maybe you can try later to animate string or something instead.

HTH
Regards ;)
 

Attachments

  • AnimateGraphic.zip
    25 KB · Views: 124
thanx alot
but i have a quetion
in this statment Me.Label1.Top = CInt(Rnd(1) * 5)
what do u mean by 1 & 5??
 
Back
Top