

We now have 5 identical shorter diagonals. Now on the rectangle transform, first move the anchor point to the left edge of the comp, and change the x scale size to a lower value, like 20%.On the gradient shape layer, add a repeater, change copies to 10, and set the position to the size of the comp (1920 if 1080p default comp).We now have a smooth diagonal let’s start by making a saw wave. Add a displacement map effect (in distort menu) and change the map layer to the gradient shape layer, using luminance on both horizontal and vertical, and change max values to 0 and 100.Create your line, easiest is to create a rectangle using the same process and change its height to 0 with a stroke instead of a fill.remove the stroke and change the fill mode to gradient the default gradient is a ramp, make it fill the screen by changing the start/end point.Create a rectangle shape layer the size of your comp by double-clicking the rectangle tool in the toolbar.

I will use the displacement map effect with only vertical displacement to create the biggest sine in my example, the max value is set to 100, which means my gradient will affect the pixel displacement of -100 when black, 100 when white and 0 when 50% gray.
