BBC BASIC for Windows
Programming >> BBC BASIC language >> Gradations of colour text
http://bb4w.conforums.com/index.cgi?board=language&action=display&num=1427763979

Gradations of colour text
Post by Danny on Mar 30th, 2015, 12:08pm

Hi

I would appreciate if someone could let me know how to get gradations of a colour with text. So, for example if I wanted the word "hello" to gradually appear from a black background in a certain colour.

I am using MODE 29 and this is the type of simple BB4W code that I can understand

MODE 29
REPEAT
COLOUR 9
PRINT "HELLO"
UNTIL


Thanks in anticipation,

Danny

Re: Gradations of colour text
Post by rtr2 on Mar 30th, 2015, 12:43pm

on Mar 30th, 2015, 12:08pm, Danny wrote:
So, for example if I wanted the word "hello" to gradually appear from a black background in a certain colour.

How about this (MODE 29 is too big to fit on my screen so I used MODE 27):

Code:
      MODE 27
      *font Arial,36
      FOR C% = 1 TO 255
        COLOUR 7,0,C%,C%
        PRINT TAB(2,2) "Hello";
        WAIT 1
      NEXT
      PRINT 

Richard.
Re: Gradations of colour text
Post by Danny on Mar 30th, 2015, 1:37pm

thanks Richard it works a treat