home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: news.eunet.fi!nullnet!tna!marcus.alanen
- From: marcus.alanen@tna.nullnet.fi (Marcus Alanen)
- Subject: Re: *SLOW* colour cycling.. :
- Message-ID: <64_5427@tna.nullnet.fi>
- References: <311c0fb8@beachyhd.demon.co.uk>
- Organization: The New Age BBBS
- Sender: news@tna.nullnet.fi (News Administrator)
- Date: 16 Feb 1996 21:06:22 +0200
-
- > I'm trying to make some colour-cycling patterns for a screen saver.
- > However, I'm having a few problems getting the cycling to work..
-
- > I've opened a DBLPAL:Lores screen with 8 bitplanes, and drawn my
- > 256-colour patterns on it. Now it comes to the cycline routines. I've
- > set up 3 arrays of 256 ULONGS, each array containing all the values for
- > the Red, Green and Blue parameters of SetRBG32() for the palette.
-
- > Now to cycle I use the following code:
-
- which I understand little of... Anyway, is there any possibility
- to use *two* palettes one after another that are identical?
- Like this: (number represents colour register, X position
- is the "address")
-
- 111111 111111
- 01234567890123450123456789012345
-
-
- So that you do a Palette() call from the beginning (x=0)
- and then after each cycle add a constant to x, so that
- the next Palette() information is taken from the address
- x=2 or something like that.
-
- Could you amazing coders please say why this easy method
- can't be used, since I'm a crap coder.
-
-
- Marcus Alanen
- marcus.alanen@tna.nullnet.fi
-