locked
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?


    • Edited by Jibba j Sunday, December 16, 2012 2:13 PM
    Sunday, December 16, 2012 2:10 PM

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).

    • Edited by litdev Sunday, December 16, 2012 4:49 PM link added
    • Proposed as answer by Zock77Editor Sunday, December 16, 2012 5:10 PM
    • Marked as answer by Jibba j Sunday, December 16, 2012 8:57 PM
    Sunday, December 16, 2012 3:08 PM

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).

    • Edited by litdev Sunday, December 16, 2012 4:49 PM link added
    • Proposed as answer by Zock77Editor Sunday, December 16, 2012 5:10 PM
    • Marked as answer by Jibba j Sunday, December 16, 2012 8:57 PM
    Sunday, December 16, 2012 3:08 PM
  • Thanks litdev

    Very helpful. This looks like a great forum.

    Sunday, December 16, 2012 8:57 PM