Annotated edit history of
ppmshift(1) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
ppmshift |
|
|
2 |
!!!ppmshift |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
EXAMPLE |
|
|
7 |
SEE ALSO |
|
|
8 |
AUTHOR |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
ppmshift - shift lines of a portable pixmap left or right by a random amount |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
ppmshift ''shift'' [[''ppmfile''] |
|
|
18 |
!!DESCRIPTION |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
Reads a portable pixmap as input. Shifts every row of image |
|
|
22 |
data to the left or right by a certain amount. The 'shift' |
|
|
23 |
parameter determines by how many pixels a row is to be |
|
|
24 |
shifted at most. |
|
|
25 |
|
|
|
26 |
|
|
|
27 |
Another one of those effects I intended to use for MPEG |
|
|
28 |
tests. Unfortunately, this program will not help me here - |
|
|
29 |
it creates too random patterns to be used for animations. |
|
|
30 |
Still, it might give interesting results on still |
|
|
31 |
images. |
|
|
32 |
!!EXAMPLE |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
Check this out: Save your favourite model's picture from |
|
|
36 |
something like alt.binaries.pictures.supermodels (ok, or |
|
|
37 |
from any other picture source), convert it to ppm, and |
|
|
38 |
process it e.g. like this, assuming the picture is 800x600 |
|
|
39 |
pixels: # take the upper half, and leave it like it is |
|
|
40 |
pnmcut 0 0 800 300 cs.ppm |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
# take the lower half, flip it upside down, dim it and |
|
|
44 |
distort it a little pnmcut 0 300 800 300 cs.ppm | pnmflip |
|
|
45 |
-tb | ppmdim 0.7 | ppmshift 10 |
|
|
46 |
|
|
|
47 |
|
|
|
48 |
# and concatenate the two pieces pnmcat -tb upper.ppm |
|
|
49 |
lower.ppm |
|
|
50 |
!!SEE ALSO |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
ppm(5), pnmcut(1), pnmflip(1), ppmdim(1), |
|
|
54 |
pnmcat(1) |
|
|
55 |
!!AUTHOR |
|
|
56 |
|
|
|
57 |
|
|
|
58 |
Copyright (C) 1993 by Frank Neumann |
|
|
59 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.