Where are acolours in the Help

New to FreeBASIC? Post your questions here.
Luis Babboni
Posts: 357
Joined: Mar 15, 2015 12:41

Where are acolours in the Help

Postby Luis Babboni » Jun 19, 2021 21:59

Hi people.

sorry but this is a problem I have too frequantly.

Where in the help is wich number is wich colour?

I mean, 2 is green, 4 is red..... others?
MrSwiss
Posts: 3848
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: Where are acolours in the Help

Postby MrSwiss » Jun 19, 2021 22:36

Code: Select all

For i As UInteger = 0 To 15
    If i < 8 Then Color i, 15 Else Color i, 0
    Print "console Color"
Next
Sleep
This little snippet shows it all.
Luis Babboni
Posts: 357
Joined: Mar 15, 2015 12:41

Re: Where are acolours in the Help

Postby Luis Babboni » Jun 19, 2021 22:50

:-)

Thanks!
badidea
Posts: 2341
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: Where are acolours in the Help

Postby badidea » Jun 20, 2021 0:33

For graphics screens, up to 8 bit colors: https://freebasic.net/wiki/GfxDefPalettes

Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 4 guests