How to read the palette

 BBS: Inland Empire Archive
Date: 11-23-92 (18:33)             Number: 379
From: PETER BARNEY                 Refer#: NONE
  To: HARRY GISH                    Recvd: NO  
Subj: How to read the palette        Conf: (2) Quik_Bas
 > Could I get you to repost that? Have someone here who'd like
 > to see it and it's already 'scolled-away'. Thanks.

Sure!  Here:

DIM Regs AS RegType
SCREEN 13 'or whatever = &H1015
Regs.bx = <color that you want to read (0-255)>
Interrupt &H10, Regs, Regs
  Reg = Regs.dx \ 256
Green = \ 256
 Blue = AND 255

--- FMail 0.92
 * Origin: Pete's Place - Toledo, Ohio (1:234/35.1)
Outer Court
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