summaryrefslogtreecommitdiff
path: root/graphics/epix/samples/lissajous.xp
blob: c713d760bb1e1631605ee60ab97433ca963e656c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* -*-ePiX-*- */
#include "epix.h"
using namespace ePiX;

P f(double t)
{
  return P(Sin(3*t), Sin(4*t));
}

int main()
{
  picture(P(-1,-1), P(1,1), "2 x 2in");

  begin();
  revolutions();

  bold(Red());
  plot(f, 0, 1, 200);

  arrow_inset(0.2);
  arrow_width(1.5);

  plain(Blue());
  tan_field(f, 0, 1, 81);

  end();
}