diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/epix/samples/lissajous.xp |
Initial commit
Diffstat (limited to 'graphics/epix/samples/lissajous.xp')
-rw-r--r-- | graphics/epix/samples/lissajous.xp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/graphics/epix/samples/lissajous.xp b/graphics/epix/samples/lissajous.xp new file mode 100644 index 0000000000..c713d760bb --- /dev/null +++ b/graphics/epix/samples/lissajous.xp @@ -0,0 +1,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(); +} + |