Sweethearts

Developer(s): Larry Allen
Date: 1983
Type: Program
Platform(s): ZX81, TS 1000
Tags: Holiday

Draws a large heart of inverse asterisks with HAPPY VALENTINE in the middle. A subroutine at line 10 prints one block at row A, column B, and three loops fill in the two lobes, the wide middle and the tapering point.

Start it with GOTO 30, as the article says: RUN begins at the subroutine and stops with report 2/10. The article suggests changing the message in line 210 and adding your name at the bottom. As printed, the right side of the heart has a bite out of it; the March 1983 Program Improvements column fixes this by changing line 120 to FOR B=7 TO 24. The download has both versions.

Published in Syntax February 1983 (Sweethearts).

Related Articles

Draw a heart with a valentine message in the middle.

Related Content

Image Gallery

Source Code

  10 PRINT AT A,B;CHR$ 151
  20 RETURN
  30 FOR A=1 TO 4
  40 FOR B=11-A TO 11+A
  50 GOSUB 10
  60 NEXT B
  70 FOR B=20-A TO 20+A
  80 GOSUB 10
  90 NEXT B
 100 NEXT A
 110 FOR A=5 TO 9
 120 FOR B=7 TO 21
 130 GOSUB 10
 140 NEXT B
 150 NEXT A
 160 FOR A=10 TO 17
 170 FOR B=A-2 TO 33-A
 180 GOSUB 10
 190 NEXT B
 200 NEXT A
 210 PRINT AT 6,13;"HAPPY";AT 7,11;"VALENTINE"

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