summaryrefslogtreecommitdiff
path: root/camm2svg.pl
diff options
context:
space:
mode:
authorThomas Kremer <->2020-09-24 21:58:49 +0200
committerThomas Kremer <->2020-09-24 21:58:49 +0200
commit0561cf7899e728d4b80dbcab108ce880fcafbf8c (patch)
treedcffce895facc7eb132d50cc827b80a86d2f7725 /camm2svg.pl
initial commit
Diffstat (limited to 'camm2svg.pl')
-rwxr-xr-xcamm2svg.pl23
1 files changed, 23 insertions, 0 deletions
diff --git a/camm2svg.pl b/camm2svg.pl
new file mode 100755
index 0000000..a1c11d5
--- /dev/null
+++ b/camm2svg.pl
@@ -0,0 +1,23 @@
+#!/usr/bin/perl
+
+# convert a CAMM-GL III file to SVG to see what is being plotted
+# Line colors represent the order of plotting (red to violet)
+
+## Copyright (c) 2019-2020 by Thomas Kremer
+## License: GPL ver. 2 or 3
+
+# usage:
+# camm2svg.pl infile > outfile
+# camm2svg.pl < infile > outfile
+
+use strict;
+use warnings;
+use CAMM;
+
+local $/ = undef;
+
+my $camm = <>;
+
+my $svg = CAMM->to_svg($camm,1,1);
+
+print $svg;