# How to draw and animate a sine wave ?

**URL:** https://forums.synfig.org/t/how-to-draw-and-animate-a-sine-wave/3976
**Category:** Synfig related help
**Created:** [August 30, 2016, 12:43pm UTC](https://forums.synfig.org/t/how-to-draw-and-animate-a-sine-wave/3976 "2016-08-30T12:43:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sylvain\_Leroux](https://forums.synfig.org/user_avatar/forums.synfig.org/sylvain_leroux/32/3870_2.png) [@Sylvain\_Leroux](https://forums.synfig.org/u/Sylvain_Leroux)
#### Post date: [August 30, 2016, 12:43pm UTC](https://forums.synfig.org/t/how-to-draw-and-animate-a-sine-wave/3976/1 "2016-08-30T12:43:34Z")

</div>

What would be the “best” way in Synfig Studio to draw a sine wave (as an advanced outline) and animate it (Change in amplitude & phase. Maybe in frequency).

I feel maybe there are some hopes by converting vertice or tangents to timeloops parameters to draw once period – and then use a “duplicate layer” to produce the other periods – but I wasn’t able to find how to combine those features to achieve my goal.

Any hints or suggestions ?

---

<div class="post-metadata">

### Author: ![caryoscelus](https://forums.synfig.org/user_avatar/forums.synfig.org/caryoscelus/32/182_2.png) [@caryoscelus](https://forums.synfig.org/u/caryoscelus)
#### Post date: [October 10, 2016, 7:31pm UTC](https://forums.synfig.org/t/how-to-draw-and-animate-a-sine-wave/3976/2 "2016-10-10T19:31:35Z")

</div>

Not sure what you want to use timeloop for, but if you aren’t aiming for procedural “true” sine and are fine with just repeating a sample, then it’s fairly easy with duplicate layer.

Basically, you need to connect vertices to length and amplitude parameters (cause using scaling will break line width), and origin-\>x to length\*duplicate. Phase change is nothing more than translate by x (scaled to length, of course) if you assume infinite length. If you want more resource effective way and really need a lot of pushing phase in one direction, then you’ll need to think up some more tricks.  
[test-22-sine.sifz](https://forums.synfig.org/uploads/default/original/2X/0/0cdc7c93bce5f543be6e98d907e7e0a93d03ea70.sifz) (1.77 KB)
