Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: TheMud on December 07, 2009, 09:41:07 PM

Title: AMOS Basic Colour Cycle
Post 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 ? :-)
Title: Re: AMOS Basic Colour Cycle
Post by: Skippy on December 07, 2009, 10:07:59 PM
Not from memory good Sir, however, I'll look it up if nobody comes back to you.

Skipster.
Title: Re: AMOS Basic Colour Cycle
Post by: bloodline on December 07, 2009, 10:15:25 PM
something like "cycle on" :D
Title: Re: AMOS Basic Colour Cycle
Post by: Skippy on December 07, 2009, 10:42:34 PM
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
Title: Re: AMOS Basic Colour Cycle
Post by: rockersuke on December 07, 2009, 10:45:48 PM
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!

--
Title: Re: AMOS Basic Colour Cycle
Post by: SamuraiCrow on December 08, 2009, 04:40:50 PM
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.
Title: Re: AMOS Basic Colour Cycle
Post by: Skippy on December 08, 2009, 10:04:33 PM
Quote from: SamuraiCrow;533087
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.