Custom Editor / Browser colours.

This is where most of us started. Classic Spectrum basic.

Moderator: Programming Moderators

Post Reply
User avatar
emook
Posts: 70
Joined: Mon May 29, 2017 6:55 pm

Custom Editor / Browser colours.

Post by emook » Tue Jan 08, 2019 12:35 am

Un-rem line 90 and save as c:\nextzxos\autoexec.bas to have a your default colours. Or edit the lines from 100 on. Format is index,palette value.


Code: Select all

1 REM emk19
  10 RUN AT 2
  20 RESTORE 100
  30 PALETTE CLEAR : PALETTE DIM 9
  40 READ i,v: IF i=-1 THEN GO TO 80
  60 LAYER PALETTE 1,i,v*2
  70 GO TO 40
  90 ERASE 
 100 DATA 0, 216: REM txt
 110 DATA 8, 1: REM bot bar
 120 DATA 31, 178: REM Bro txt
 130 DATA 15, 253: REM top txt
 140 DATA 21, 228: REM selectd
 150 DATA 22, 7: REM not fil
 160 DATA 23, 0: REM bkgrnd
 170 DATA 24, 38: REM topbarbg
 180 DATA 26, 221: REM 1st flsh
 190 DATA 14, 157: REM 2nd flsh
 200 DATA 28, 127: REM 3rd flsh
 210 DATA 13, 243: REM 4th flsh
 220 DATA -1,-1
 230 REMOUNT : .browse -s a$: SAVE a$ LINE 10
 240 OPEN # 4, "o>defcols.txt": LIST # 4 : CLOSE # 4
49309841_269327097069169_270767919594471424_n.jpg
49309841_269327097069169_270767919594471424_n.jpg (350.69 KiB) Viewed 1029 times
49671122_608893159563188_6365759161854066688_n.jpg
49671122_608893159563188_6365759161854066688_n.jpg (268.58 KiB) Viewed 1029 times
---------
ZXorDIE
http://zxbasic.uk/NextBuild NextBuild
http://zxbasic.uk ZXBD Snapshot uploader
http://zxbasic.uk/db/0 ZXBasic Online Database

Post Reply