Pumpkin

See all articles from SMUG Bytes v5 n10
Author(s): Greg Steiner
Publication: SMUG Bytes
Pub Details: SMUG Bytes v5 n10 (Volume 5, Issue 10)
Date: October 1988
Pages: 8

The following is a nice little program. It is just in time for the October holloween season.

   1 REM      PUMPKIN                  © GREG STEINER 1988
10 BORDER 0: PAPER 6: CLS : INK 9
20 PLOT 127,160: DRAW 0,-155,1.2*PI
30 DRAW 0,155,1.2*PI
40 PLOT 127,160: DRAW 0,-155,.5*PI
50 DRAW 0,155,.5*PI: DRAW 0,-155,.9*PI: DRAW 0,155,.9*PI
300 FOR y=175 TO 0 STEP -1
310 FOR x=255 TO 0 STEP -1
320 IF POINT (x,y) THEN GO TO [illegible]20
330 PLOT x,y
340 NEXT x
350 NEXT y
420 FOR y=0 TO 175
430 FOR x=0 TO 255
440 IF POINT (x,y) THEN GO TO 180
450 PLOT x,y
470 NEXT x
480 NEXT y
500 REM stem
510 INK 4
520 FOR i=124 TO 135
530 PLOT i,156
540 DRAW 5,19,-PI
550 NEXT i
590 INK 0
600 REM face
610 REM eyes
620 FOR y=100 TO 150
630 FOR x=-40+y TO 210-y
640 PLOT x,y
650 PLOT x+85,y
660 NEXT x
670 NEXT y
700 REM nose
710 FOR y=70 TO 100
720 FOR x=y+45 TO 210-y
730 PLOT x,y
740 NEXT x
750 NEXT y
760 REM mouth
765 PLOT 64,65
770 FOR p=.3 TO .56 STEP .02
780 DRAW 126,0,p*PI
785 DRAW -126,0,-(p+.01)*PI
790 NEXT p
800 LET h$="HH AA PL PL YO W E E N "
810 FOR i=4 TO 38 STEP 2
820 INVERSE 1: PRINT AT i/2-1,0;h$(i-3);AT i/2-1,31;h$(i-2)
830 NEXT i
1000 SAVE "PUMPKIN" LINE 1
PUMPKIN CK TYPE report:

1      :  51  :  4314
10     :  29  :  2178
20     :  53  :  3711
30     :  31  :  2435
40     :  52  :  3234
50     :  91  :  6852
300    :  30  :  2194
310    :  30  :  2270
320    :  19  :  2206
330    :  5   :  847
340    :  3   :  632
350    :  3   :  633
420    :  21  :  1638
430    :  21  :  1714
440    :  19  :  2278
450    :  5   :  847
470    :  3   :  632
480    :  3   :  633
500    :  6   :  1147
510    :  9   :  544
520    :  23  :  1851
530    :  13  :  1104
540    :  21  :  1220
550    :  3   :  617
590    :  9   :  536
600    :  6   :  1078
610    :  6   :  1155
620    :  23  :  1849
630    :  27  :  2263
640    :  5   :  847
650    :  14  :  1343
660    :  3   :  632
670    :  3   :  633
700    :  6   :  1130
710    :  22  :  1691
720    :  26  :  2364
730    :  5   :  847
740    :  3   :  632
750    :  3   :  633
760    :  7   :  1278
765    :  19  :  1116
770    :  32  :  4687
780    :  23  :  1502
785    :  37  :  3079
790    :  3   :  624
800    :  43  :  3567
810    :  28  :  1778
820    :  93  :  4440
830    :  3   :  617
1000   :  19  :  1930
PUMPKIN screen - jack-o'-lantern with HAPPY HALLOWEEN down the sides
PUMPKIN screen – jack-o'-lantern with HAPPY HALLOWEEN down the sides

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.