home *** CD-ROM | disk | FTP | other *** search
- Path: ns.ftns.no!news
- From: kenneth@norconnect.no (Kenneth C. Nilsen)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Q:ANSI attributes - 16 colors & blinking?
- Date: 16 Feb 1996 13:06:29 GMT
- Organization: A poorly-installed InterNetNews site
- Message-ID: <1353.6620T780T2332@norconnect.no>
- References: <4fqpk3$6tf@tron.sci.fi>
- NNTP-Posting-Host: norconnect.no
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
- The 13-Feb-96 20:40:54, Tuomas Salo wrote in msg n/a :
-
- >Can I use 16 colors with ANSI? The first 8 ones are easy, but is the
- >Graphics Rendition attribute 2 (secondary color/dim/faint/etc) usable?
-
- 16 bit ansi is not supported on the Amiga with the normal console.device. You
- need to use emulated console if that can be a good word for it.
-
- To use the upper 8 colors you need to set the bold attribute. That is also
- why 16 colors ansi is slow on the Amiga. 0-7 are halfbrites which you set
- with normal Amiga ansi codes.
-
- Colors are set as bits:
-
- Halfbrites: R G B
- Bit: 0 1 2
- Value: 1 2 4
- --------------------------
- 0 - Black 0, 0, 0 (value: 1)
- 1 - Red 127, 0, 0 (value: 2)
- 2 - Green 0, 127, 0 (etc.)
- 3 - Yellow 127, 127, 0
- 4 - Blue 0, 0, 127
- 5 - Purple 127, 0, 127
- 6 - Cyan 0, 127, 127
- 7 - White 127, 127, 127
-
- Hicolors: R G B (w/ bold)
-
- 8 - Black 0, 0, 0
- 9 - Red 255, 0, 0
- 10 - Green 0, 255, 0
- 11 - Yellow 255, 255, 0
- 12 - Blue 0, 0, 255
- 13 - Purple 255, 0, 255
- 14 - Cyan 0, 255, 255
- 15 - White 255, 255, 255
-
-
-
- ---
- Worldwide Solutions AS \ Kenneth C. Nilsen (kenneth@norconnect.no)
- Advisor, developer \/\/\/\ http://www.norconnect.no/~kenneth/
- coordinator \
-
-
-