74600c0bc4ed650dd76a1f1563d8a50550348a89
Stefan Schuermans more documentation

Stefan Schuermans authored 13 years ago

1) <html>
2)   <head>
3)     <title>Blinker - Canvas</title>
4)   </head>
5)   <body>
6)     <h1>Blinker - Canvas</h1>
7)     <p>
8)       The canvas module allows to merge several streams into one.
Stefan Schuermans typo

Stefan Schuermans authored 6 years ago

9)       It works like a canvas, onto which rectangular sections of
Stefan Schuermans more documentation

Stefan Schuermans authored 13 years ago

10)       different streams are drawn.
11)       The result obtained on the canvas is then sent to a single output
12)       stream.
13)     </p>
14)     <h2>Configuration</h2>
15)     <p>
16)       The configuration of the canvas module with name <code>NAME</code>
Stefan Schuermans fix canvas doc

Stefan Schuermans authored 6 years ago

17)       is located in the <code>canvases/NAME</code> subdirectory.
Stefan Schuermans more documentation

Stefan Schuermans authored 13 years ago

18)     </p>
19)     <h3>Format</h3>
20)     <p>
21)       The file <code>format</code> describes the format of the canvas,
22)       i.e. its dimensions, the number of channels and the color depth on
23)       each channel.
24)       The file must contain a string
25)       <code>&lt;width&gt;x&lt;height&gt;-&lt;channels&gt;/&lt;colors&gt;</code>,
26)       e.g. <code>18x8-1/256</code> for 18 pixels width, 8 pixels height
27)       in 256 grayscales.
28)     </p>
29)     <h3>Input List</h3>
30)     <p>
Stefan Schuermans typos in comments and docum...

Stefan Schuermans authored 13 years ago

31)       The inputs to be drawn onto the canvas are configured in the
Stefan Schuermans more documentation

Stefan Schuermans authored 13 years ago

32)       <code>inputs</code> subdirectory.
Stefan Schuermans typos in comments and docum...

Stefan Schuermans authored 13 years ago

33)       Each input is configured in an own subdirectory in <code>inputs</code>.
Stefan Schuermans more documentation

Stefan Schuermans authored 13 years ago

34)       E.g. the configurations for inputs with names <code>top</code>
35)       and <code>bottom</code> reside in subdirectories <code>inputs/top</code>
36)       and <code>inputs/bottom</code> respectively.
37)       All inputs are drawn to the canvas in alphanumerical order, i.e.
38)       <code>top</code> is painted over <code>bottom</code> on overlapping
39)       pixels.
40)     </p>
41)     <p>
42)       The configuration inside an input subdirectory consists of the following
43)       settings:
44)     </p>
45)     <h4>Input Stream</h4>
46)     <p>
47)       The file <code>instream</code> contains the name of the stream to
48)       read for this input.
49)     </p>
50)     <h4>Source Position</h4>
51)     <p>
52)       The file <code>srcpos</code> defines the top-left corner of the
53)       recangular section to be taken from the stream.
Stefan Schuermans fix canvas doc

Stefan Schuermans authored 6 years ago

54)       The file must contain a string <code>&lt;x&gt;,&lt;y&gt;</code>.
Stefan Schuermans more documentation

Stefan Schuermans authored 13 years ago

55)     </p>
56)     <h4>Size</h4>
57)     <p>
58)       The file <code>size</code> defines the size of the
59)       recangular section to be taken from the stream.
60)       The file must contain a string <code>&lt;width&gt;x&lt;height&gt;</code>.
61)     </p>
62)     <h4>Destination Position</h4>
63)     <p>
64)       The file <code>destpos</code> defines the top-left corner of the
65)       recangular section on the canvas to draw to.
Stefan Schuermans fix canvas doc

Stefan Schuermans authored 6 years ago

66)       The file must contain a string <code>&lt;x&gt;,&lt;y&gt;</code>.