Skip to main content
Participating Frequently
November 1, 2013
Answered

How do I make a sine wave in illustrator?

  • November 1, 2013
  • 3 replies
  • 112103 views

Hi,

I started a thread earlier this evening but I think that I accidentally flagged it as "solved" or something like that (I'm new to this forum). So I'm trying this again. I want to know if there's a way of creating a sine wave in illustrator. I've managed to create a cosine wave by using the zig zag effect on a line and choosing "smooth". But I can't seem to find a good way to make a sine wave.

This is the difference for anyone wondering:

http://upload.wikimedia.org/wikipedia/commons/thumb/7/71/Sine_cosine_one_period.svg/600px-Sine_cosine_one_period.svg.png

I want a sine wave just like the picture above.

Thanks for the help!

ekmanch

This topic has been closed for replies.
Correct answer Jacob Bugge

How do I apply a transform that offsets the line horizontally so I can put a clipping mask on it? The clipping mask seems to work but it doesn't allow me to just take a part in the middle. Only at the ends of the line.


ekmanch,

 

As I (mis)understand it, to create a single full sine wave, you may:

 

1) Create a horizontal line 2.5 times the length of the desired full sine wave (or you may adapt the length later);

2) Effect>Distort & Transform>Zig Zag with 4 Ridges per segment and Smooth Points and the desired height as the Size (or you may adapt later);

3) Object>Expand Appearance;

4) Object>Path>Add Anchor Points;

5) With the Scissors Tool cut where the sine wave starts and ends;

6) Ungroup if needed and delete the end bits (and adapt the length/height if needed).

3 replies

Legend
December 21, 2022

You could try this script, and see if it works for you.

Steve Fairbairn
Inspiring
November 1, 2013

Since there’s really no difference you could use a (probably rectangular) clipping mask to define where the wave begins and ends.

Or, if you don’t mind expanding the effect, just do that and then edit (knife, scissors whatever) the path.

CarlosCanto
Community Expert
Community Expert
November 1, 2013

I think all the replies in the previous thread tried to say that the sine and the cosine curves are exactly the same

ekmanchAuthor
Participating Frequently
November 1, 2013

They are the same except that they are shifted to eachother. I need my curve to start at 0 (origin), not at the top. And I can't crop, use the knife tool etc. because of the effect. So I don't really know what to do.

Doug A Roberts
Community Expert
Community Expert
November 1, 2013

expand appearence?