Jump to content

Colour pinstripe/Display: Difference between revisions

Improve Uxntal version with suggestions from #uxn IRC channel
(Update Uxntal implementation to show four stripe sizes)
(Improve Uxntal version with suggestions from #uxn IRC channel)
 
Line 2,198:
 
( draw the four stripe layers )
#0100
&loop ( -- )
&loop
( update y coordinate )
DUP #01 SUB #00 SWPOVR [ LIT2 &quarter-height $2 ] MUL2 .Screen/y DEO2
( draw a layer )
DUP INCk draw-layer
( do it four times )
INC DUP #0504 LTH ?&loop
POP BRK
 
@draw-layer ( step -: )
( extend step to short, create counter )
#00 SWP #0000
&loop ( -- )
( update x coordinate )
MUL2k .Screen/x DEO2
57

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.