Welcome, Guest. Please login or register.

Author Topic: AMOS Basic Colour Cycle  (Read 1790 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline TheMudTopic starter

  • Sr. Member
  • ****
  • Join Date: Oct 2006
  • Posts: 372
    • Show only replies by TheMud
    • http://www.houseofvoices.tk
AMOS Basic Colour Cycle
« 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 ? :-)
-----------------------------------------------
http://www.dailyroxette.com - My first passion next to Amiga
 

Offline Skippy

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 710
    • Show only replies by Skippy
Re: AMOS Basic Colour Cycle
« Reply #1 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.
Squareroot of all fluffiness.
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: AMOS Basic Colour Cycle
« Reply #2 on: December 07, 2009, 10:15:25 PM »
something like "cycle on" :D

Offline Skippy

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 710
    • Show only replies by Skippy
Re: AMOS Basic Colour Cycle
« Reply #3 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
Squareroot of all fluffiness.
 

Offline rockersuke

  • Jr. Member
  • **
  • Join Date: Feb 2009
  • Posts: 56
    • Show only replies by rockersuke
Re: AMOS Basic Colour Cycle
« Reply #4 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!

--
« Last Edit: December 07, 2009, 10:49:34 PM by rockersuke »
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: AMOS Basic Colour Cycle
« Reply #5 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.
« Last Edit: December 08, 2009, 04:43:55 PM by SamuraiCrow »
 

Offline Skippy

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 710
    • Show only replies by Skippy
Re: AMOS Basic Colour Cycle
« Reply #6 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.
Squareroot of all fluffiness.