none
Can't access all the colours supported by Small Basic RRS feed

  • Question

  • Hi

    I found a list of colours supported by Small Basic in the "Introducing Small Basic" document, downloaded from the Microsoft site. Unfortunately i found only a few of the more basic types of colours would work. When i key in the other colours e.g.

    TextWindow.BackgroundColor = "LightSkyBlue"

    It passes the default colour black to the console.

    Am i doing something wrong?


    Sunday, December 16, 2012 2:10 PM
    Moderator

Answers

  • You are right, only some of the basic colours work with the TextWindow.  This is because it is a console which only support a restricted set of colours.  All of the other ones will work with the GraphicsWindow.

    See here.  Basically 16 of them (a 4 bit number).

    Sunday, December 16, 2012 3:08 PM
    Moderator

All replies

  • You are right, only some of the basic colours work with the TextWindow.  This is because it is a console which only support a restricted set of colours.  All of the other ones will work with the GraphicsWindow.

    See here.  Basically 16 of them (a 4 bit number).

    Sunday, December 16, 2012 3:08 PM
    Moderator
  • Thanks litdev

    Very helpful. This looks like a great forum.

    Sunday, December 16, 2012 8:57 PM
    Moderator