color conversion
[PyX/mjg.git] / examples / hello.txt
bloba41ff7e8a82e4f0785d66f3ee8e1c5f2acf5a87e
1 As it's a good pratice to say "Hello, world!" in the first example, let's
2 discuss how to do that in PyX.
4 At first we import the PyX modules. Most PyX programs will start with a line
5 like that. In order to produce some output we create a canvas instance `c`. Such
6 an instance provides some useful methods to output some text at a certain
7 position and for directly stroking a path, for which we use a `line` instance
8 from the `path` module here. Once this is done we write a EPS file or/and an PDF
9 file containing all items inserted into the canvas instance.