# Qbnews Question

``` BBS: Inland Empire Archive
Date: 03-05-92 (22:21)             Number: 193
From: DAVE CLEARY                  Refer#: NONE
To: SHAUN HILLIS                  Recvd: NO
Subj: Qbnews Question                Conf: (11) Modula-2

In a message of <02 Mar 92 17:50:00>, Shaun Hillis (1:202/204) writes:

>   Each of the above routines uses Attr% to define the color. The
>question I have is, is there a listing of all the various colors and
>their respective numbers?

You can generate a list by using the following formula

Attr% = (Fore% AND 16) * 8 + ((Back% AND 7) * 16) + (Fore% AND 15)

Later           Dave

--- msged 1.99S ZTC
* Origin: Home of The QBNews (fidonet.org 1:141/777.1)
```

Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET