TITLE Applesoft: HPLOT TO After a Draw Article ID: 44 Created: 9/21/84 Modified: 3/2/98 -------------------------------------------------------------------------------- TOPIC The Applesoft DRAW command doesn't set an internal pointer refering to the last plotted point, which a HPLOT TO command could use. Instead HPLOT TO X,Y draws a line from some random point to X,Y. -------------------------------------------------------------------------------- DISCUSSION The following program contains a machine language routine which decodes the position of the last plotted point, thus allowing HPLOT TO X,Y to draw from this location. 10 FOR J=768 TO 780 20 READ A 30 POKE J,A 40 NEXT J 50 DATA 32,203,245,166,224,164,225 60 DATA 165,226,76,17,244 100 SHLOAD 110 HGR 120 HCOLOR=3 130 SCALE=1 140 DRAW 1 AT 100,100 150 CALL 768: REM THIS IS IT! 160 HPLOT TO 10,10 170 END