beispiel
 BACK ..
 Eine PS-Datei als Beispiel
 ==========================
 %!PS-Adobe 3.0
 %%% Kopf
 /Helvetica findfont
 10 scalefont setfont
 1 setlinewidth
 0 setgray
 %%% schwarzer Kasten
 newpath
 50 250 moveto
 300 0 rlineto
 0 30 rlineto
 -300 0 rlineto
 closepath
 stroke
 %%% Schrift
 newpath
 50 250 moveto
 10 10 rmoveto
 (Hallo Welt) show
 50 250 moveto
 closepath
 stroke
 %%% roter Kasten
 1 0 0 setrgbcolor
 newpath
 50 200 moveto
 300 0 rlineto
 0 30 rlineto
 -300 0 rlineto
 closepath
 stroke
 %%% Schrift
 newpath
 50 200 moveto
 10 10 rmoveto
 (rot) show
 50 250 moveto
 closepath
 stroke
 %%% gruener Kasten
 0 1 0 setrgbcolor
 newpath
 50 150 moveto
 300 0 rlineto
 0 30 rlineto
 -300 0 rlineto
 closepath
 stroke
 %%% Schrift
 newpath
 50 150 moveto
 10 10 rmoveto
 (gruen) show
 50 250 moveto
 closepath
 stroke
 %%% blauer Kasten
 0 0 1 setrgbcolor
 newpath
 50 100 moveto
 300 0 rlineto
 0 30 rlineto
 -300 0 rlineto
 closepath
 stroke
 %%% Schrift
 newpath
 50 100 moveto
 10 10 rmoveto
 (blau) show
 50 250 moveto
 closepath
 stroke
 %%% brauner Kasten
 .8 .5 .3 setrgbcolor
 newpath
 50 50 moveto
 300 0 rlineto
 0 30 rlineto
 -300 0 rlineto
 closepath
 stroke
 %%% Schrift
 newpath
 50 50 moveto
 10 10 rmoveto
 (braun) show
 50 250 moveto
 closepath
 stroke
   [IMG]
 
/home/http/wiki/data/pages/os4_programmierung_ps_beispiel.txt · Zuletzt geändert: 2010-05-22 19:03:58 (Externe Bearbeitung)
Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht:GNU Free Documentation License 1.2
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki