challenge Hello, world!

「Hello, world!」と表示するプログラムを作ってください。

Posted feedbacks - PostScript

印刷できると思います。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
%!
/inch {72 mul} bind def
/sheetheight 11.64 inch def
/sheetwidth   8.27 inch def
/Courier 24 selectfont

sheetwidth  24 2 div 12 mul sub 2 div
sheetheight 2 div
moveto
(Hello world!) show
showpage

ぐるんぐるんいっぱい出力するようにしてみました。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
%!

/inch {72 mul} bind def
/sheetheight 11.64 inch def
/sheetwidth   8.27 inch def
/Helvetica 12 selectfont

sheetwidth 2 div sheetheight 2 div moveto

0 20 720 {
  gsave
    currentpoint translate
    dup
    rotate
    80 div dup
    scale
    15 0 moveto
    (Hello, world!) show
  grestore
} for

showpage

Index

Feed

Other

Link

Pathtraq

loading...