Pinstripe/Display: Difference between revisions

Added ZX81 BASIC
mNo edit summary
(Added ZX81 BASIC)
Line 793:
(void (new full-frame%))
</lang>
 
=={{header|Sinclair ZX81 BASIC}}==
Requires at least 2k of RAM. (Why? Because the whole screen is in use: we have no separate video RAM, so the 1k model runs out of memory trying to plot the bottom quarter of the display.)
 
The ZX81's graphics resolution is only 64x44, so this is quite a blocky pinstripe. It would be 64x48, in fact; but a strip along the bottom of the screen is reserved for system messages and user input and cannot be made available for other purposes (at least not from BASIC).
<lang basic>10 FOR W=1 TO 4
20 FOR I=0 TO 63 STEP 2*W
30 FOR J=1 TO W
40 FOR K=43-11*(W-1) TO 33-11*(W-1) STEP -1
50 PLOT I+J,K
60 NEXT K
70 NEXT J
80 NEXT I
90 NEXT W</lang>
{{out}}
Screenshot [http://www.edmundgriffiths.com/zx81pinstripe.jpg here].
 
=={{header|Tcl}}==
519

edits