From the collection

BORDER VARIATION - OUTER TO INNER

BORDER VARIATION - OUTER TO INNER
From the personal collection

About this item

This time a small variant on the print border basic one-liner.

!- {166}  - checkerboard character
!- {19}   - cursor home
!- {157}  - cursor left
!- {17}   - cursor down
!- {148}  - insert mode
!- {145}  - cursor up
!- {29}   - cursor right
!- readable version (vice formatted)
!- -------------------------------------------------
100 c=0
110 poke 646, rnd(.)*255
120 print"{19}";:if c>0 then for i=1 to c:print"{29}{17}";:next
130 for i=1 to 40-(2*c) : print "{166}";:next i
140 print "{157}";
150 for i=1 to 24-(2*c) : print "{166}{157}{17}";:next i
160 if c=0 then print "{157}{20}{29}{20}{29}{166}{157}{148}";
170 if c>0 then print "{166}";
180 for i=1 to 39-(2*c):print"{157}{157}{166}";:next
190 for i=1 to 24-(2*c):print"{145}{157}{166}";:next
200 c=c+1:if c=12 then 100
210 goto 110

Collection details

PlatformCommodore 64 BASIC
← Back to BASIC Programs