Color BASIC - A First Program ----------------------------- By Lance Squire August 6, 2008 These two messages were originally posted to the Yahoo Bally Alley discussion group. Subject: Playing with Color BASIC From: Lance F. Squire Sent: Wed 8/06/08 9:28 PM To: ballyalley@yahoogroups.com Loaded Color BASIC onto the White RAM. Here is my first test program: 10 CLEAR ;PRINT "THIS IS A TEST!" 20 FOR X=1TO 7;PRINT "LINE ",;PRINT X+1, 24 FC=2;PRINT " NEW",;FC=3 25 PRINT " COLOR " 26 FC=1 30 NEXT X 40 FOR C=1TO 7 50 COLOR C,RND (255),RND (255),RND (255),RND (255) 60 NEXT C 70 FOR T=1TO 7 80 CLINE T,RND (7) 90 NEXT T 100 GOTO 70 This gets all 4 colours on each line. colour set(CLINE) switching dosen't cause any noticeable flicker on my Bally. I haven't figured out how the colour select works for BOX or LINE yet, or if XOR is still there. Lance ------------------------------------------------------------------------------- Re: Playing with Color BASIC From: ballyalley@yahoogroups.com on behalf of Richard Degler Sent: Thu 8/07/08 5:43 AM Reply-to: ballyalley@yahoogroups.com To: ballyalley@yahoogroups.com What made you use FC like that? Since CLINE/COLOR now control the Forground Colors and Background Colors in ColorBasic, they DID use FC and BC for the Character/Cell Color (which became CC in the Extended Basics) - although they left the Shift Keys code changing BC quite uselessly. Anyway, nice catch. Now I'll have to expand on my brief CB manual... BOX and LINE use this table for their last number, so it's just 0 - 3 : CLRTBL: DB $00 ; Color Indexes [New for cb] DB $55 DB $AA DB $FF therefore it looks like X-OR is not an option for drawing.