2022-06-29 07:30:08 +00:00
|
|
|
diff -urNp a/editor/ppmfade b/editor/ppmfade
|
|
|
|
--- a/editor/ppmfade 2022-06-28 07:58:59.195317750 +0200
|
|
|
|
+++ b/editor/ppmfade 2022-06-28 08:04:56.070643056 +0200
|
|
|
|
@@ -215,84 +215,84 @@ for ($i = 1; $i <= $nframes; $i++) {
|
2004-09-09 09:17:25 +00:00
|
|
|
$n = $spline20[$i] * 100;
|
2022-06-29 07:30:08 +00:00
|
|
|
system("ppmshift $n $tmpdir/junk1.ppm >$tmpdir/junk1a.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
$n = (1-$spline20[$i-10])*100;
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmshift $n junk2.ppm >junk2a.ppm");
|
|
|
|
+ system("ppmshift $n $tmpdir/junk2.ppm >$tmpdir/junk2a.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
$n = $spline10[$i-10];
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmmix $n junk1a.ppm junk2a.ppm >junk3.ppm");
|
|
|
|
+ system("ppmmix $n $tmpdir/junk1a.ppm $tmpdir/junk2a.ppm >$tmpdir/junk3.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
} else {
|
|
|
|
my $n = (1-$spline20[$i-10]) * 100;
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmshift $n junk2.ppm >junk3.ppm");
|
|
|
|
+ system("ppmshift $n $tmpdir/junk2.ppm >$tmpdir/junk3.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
}
|
|
|
|
} elsif ($mode eq $RELIEF) {
|
|
|
|
if ($i == 1) {
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmrelief junk1.ppm >junk1r.ppm");
|
|
|
|
+ system("ppmrelief $tmpdir/junk1.ppm >$tmpdir/junk1r.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
}
|
|
|
|
if ($i <= 10) {
|
|
|
|
my $n = $spline10[$i];
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmmix $n junk1.ppm junk1r.ppm >junk3.ppm");
|
|
|
|
+ system("ppmmix $n $tmpdir/junk1.ppm $tmpdir/junk1r.ppm >$tmpdir/junk3.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
} elsif ($i <= 20) {
|
|
|
|
my $n = $spline10[$i-10];
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmmix $n junk1r.ppm junk2r.ppm >junk3.ppm");
|
|
|
|
+ system("ppmmix $n $tmpdir/junk1r.ppm $tmpdir/junk2r.ppm >$tmpdir/junk3.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
} else {
|
|
|
|
my $n = $spline10[$i-20];
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmmix $n junk2r.ppm junk2.ppm >junk3.ppm");
|
|
|
|
+ system("ppmmix $n $tmpdir/junk2r.ppm $tmpdir/junk2.ppm >$tmpdir/junk3.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
}
|
|
|
|
if ($i == 10) {
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmrelief junk2.ppm >junk2r.ppm");
|
|
|
|
+ system("ppmrelief $tmpdir/junk2.ppm >$tmpdir/junk2r.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
}
|
|
|
|
} elsif ($mode eq $OIL) {
|
|
|
|
if ($i == 1) {
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmtopgm junk1.ppm | pgmoil >junko.ppm");
|
|
|
|
- system("rgb3toppm junko.ppm junko.ppm junko.ppm " .
|
|
|
|
- ">junk1o.ppm");
|
|
|
|
+ system("ppmtopgm $tmpdir/junk1.ppm | pgmoil >$tmpdir/junko.ppm");
|
|
|
|
+ system("rgb3toppm $tmpdir/junko.ppm $tmpdir/junko.ppm $tmpdir/junko.ppm " .
|
|
|
|
+ ">$tmpdir/junk1o.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
}
|
|
|
|
if ($i <= 10) {
|
|
|
|
my $n = $spline10[$i];
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmmix $n junk1.ppm junk1o.ppm >junk3.ppm");
|
|
|
|
+ system("ppmmix $n $tmpdir/junk1.ppm $tmpdir/junk1o.ppm >$tmpdir/junk3.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
} elsif ($i <= 20) {
|
|
|
|
my $n = $spline10[$i-10];
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmmix $n junk1o.ppm junk2o.ppm >junk3.ppm");
|
|
|
|
+ system("ppmmix $n $tmpdir/junk1o.ppm $tmpdir/junk2o.ppm >$tmpdir/junk3.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
} else {
|
|
|
|
my $n = $spline10[$i-20];
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmmix $n junk2o.ppm junk2.ppm >junk3.ppm");
|
|
|
|
+ system("ppmmix $n $tmpdir/junk2o.ppm $tmpdir/junk2.ppm >$tmpdir/junk3.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
}
|
|
|
|
if ($i == 10) {
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmtopgm junk2.ppm | pgmoil >junko.ppm");
|
|
|
|
- system("rgb3toppm junko.ppm junko.ppm junko.ppm " .
|
|
|
|
- ">junk2o.ppm");
|
|
|
|
+ system("ppmtopgm $tmpdir/junk2.ppm | pgmoil >$tmpdir/junko.ppm");
|
|
|
|
+ system("rgb3toppm $tmpdir/junko.ppm $tmpdir/junko.ppm $tmpdir/junko.ppm " .
|
|
|
|
+ ">$tmpdir/junk2o.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
}
|
|
|
|
} elsif ($mode eq $EDGE) {
|
|
|
|
if ($i == 1) {
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmtopgm junk1.ppm | pgmedge >junko.ppm");
|
|
|
|
- system("rgb3toppm junko.ppm junko.ppm junko.ppm " .
|
|
|
|
- ">junk1o.ppm");
|
|
|
|
+ system("ppmtopgm $tmpdir/junk1.ppm | pgmedge >$tmpdir/junko.ppm");
|
|
|
|
+ system("rgb3toppm $tmpdir/junko.ppm $tmpdir/junko.ppm $tmpdir/junko.ppm " .
|
|
|
|
+ ">$tmpdir/junk1o.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
}
|
|
|
|
if ($i <= 10) {
|
|
|
|
my $n = $spline10[$i];
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmmix $n junk1.ppm junk1o.ppm >junk3.ppm");
|
|
|
|
+ system("ppmmix $n $tmpdir/junk1.ppm $tmpdir/junk1o.ppm >$tmpdir/junk3.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
} elsif ($i <= 20) {
|
|
|
|
my $n = $spline10[$i-10];
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmmix $n junk1o.ppm junk2o.ppm >junk3.ppm");
|
|
|
|
+ system("ppmmix $n $tmpdir/junk1o.ppm $tmpdir/junk2o.ppm >$tmpdir/junk3.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
} else {
|
|
|
|
my $n = $spline10[$i-20];
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmmix $n junk2o.ppm junk2.ppm >junk3.ppm");
|
|
|
|
+ system("ppmmix $n $tmpdir/junk2o.ppm $tmpdir/junk2.ppm >$tmpdir/junk3.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
}
|
|
|
|
if ($i == 10) {
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmtopgm junk2.ppm | pgmedge >junko.ppm");
|
|
|
|
- system("rgb3toppm junko.ppm junko.ppm junko.ppm " .
|
|
|
|
- ">junk2o.ppm");
|
|
|
|
+ system("ppmtopgm $tmpdir/junk2.ppm | pgmedge >$tmpdir/junko.ppm");
|
|
|
|
+ system("rgb3toppm $tmpdir/junko.ppm $tmpdir/junko.ppm $tmpdir/junko.ppm " .
|
|
|
|
+ ">$tmpdir/junk2o.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
}
|
|
|
|
} elsif ($mode eq $BENTLEY) {
|
|
|
|
if ($i == 1) {
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmtopgm junk1.ppm | pgmbentley >junko.ppm");
|
|
|
|
- system("rgb3toppm junko.ppm junko.ppm junko.ppm " .
|
|
|
|
- ">junk1o.ppm");
|
|
|
|
+ system("ppmtopgm $tmpdir/junk1.ppm | pgmbentley >$tmpdir/junko.ppm");
|
|
|
|
+ system("rgb3toppm $tmpdir/junko.ppm $tmpdir/junko.ppm $tmpdir/junko.ppm " .
|
|
|
|
+ ">$tmpdir/junk1o.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
}
|
|
|
|
if ($i <= 10) {
|
|
|
|
my $n = $spline10[$i];
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmmix $n junk1.ppm junk1o.ppm >junk3.ppm");
|
|
|
|
+ system("ppmmix $n $tmpdir/junk1.ppm $tmpdir/junk1o.ppm >$tmpdir/junk3.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
} elsif ($i <= 20) {
|
|
|
|
my $n = $spline10[$i-10];
|
2022-06-29 07:30:08 +00:00
|
|
|
- system("ppmmix $n junk1o.ppm junk2o.ppm >junk3.ppm");
|
|
|
|
+ system("ppmmix $n $tmpdir/junk1o.ppm $tmpdir/junk2o.ppm >$tmpdir/junk3.ppm");
|
2004-09-09 09:17:25 +00:00
|
|
|
} else {
|
|
|
|
my $n = $spline10[$i-20];
|
2022-06-29 07:30:08 +00:00
|
|
|
system("ppmmix $n $tmpdir/junk2o.ppm $tmpdir/junk2.ppm " .
|