Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: TheMud on December 07, 2009, 09:41:07 PM
-
Hi
I just started programming in AMOS again after, well almost 20 years...
I remember a command to cycle colours... But cant remember how :-S
Anyone ? :-)
-
Not from memory good Sir, however, I'll look it up if nobody comes back to you.
Skipster.
-
something like "cycle on" :D
-
This is a two page extract that covers the basics, might need to run it past the Forum Moderators incase of any particulars pertaining to copyright infringement.
Basically COLOUR assign colour to an index.
COLOUR Index, $RGB the index being the colour register you point to and the $RGB the value.
So I guess you could create a simple FOR /TO NEXT LOOP with an $RGB string value to manipulate individual registers.
PALETTE allows you to install a whole palette in a singLe statement:
PALETTE 0,$F00,$0F0
-
You could cycle a certain colour using FLASH and/or SHIFT commands. I'm reading it right now in the AMOS Pro manual, so in the basic version it could be a bit different.
A sentence could be like:
FLASH index number, "(colour,delay)(colour,delay)(colour,delay)..."
where you could define up to 16 differents colors and delays for the cycling.
EDIT: yup, I'm looking now in the AMOS CREATOR manual and FLASH works just the same way!
--
-
Shift Up and Shift Down may be the commands he's looking for. http://amos.condor.serverpro3.com/AmosProManual/6/623.html has the info. Sorry it took so long to post this but the Amos Factory website has been down.
You can download the whole AmosPro manual at http://aminet.net/package/dev/amos/AmosProManual_HTML or there's a PDF version in the same directory.
-
Shift Up and Shift Down may be the commands he's looking for. http://amos.condor.serverpro3.com/AmosProManual/6/623.html has the info. Sorry it took so long to post this but the Amos Factory website has been down.
You can download the whole AmosPro manual at http://aminet.net/package/dev/amos/AmosProManual_HTML or there's a PDF version in the same directory.
That's a really handy website w/ discussion forums, looks nice too; "The Amos Factory" has a nice ring to it. Thanks for sharing.