Blitz Basic 2 - Reference Guide-ENG

Page 136

Statement: StopCycle Syntax: StopCycie Modes: Amiga Description: StopCycle will halt all colour cycling started with the Cycle command.

Statement: Rgb Syntax: Rgb Colour Register, Red, Green, Blue Modes: AmigalBlitz Description: Rgb enables you to set individual colour registers in a palette to an RGB colour value. If executed in Amiga mode, Rgb sets colour registers in the currently used screen. If executed in Blitz Mode, Rgb sets colour registers in the currently used slice. Note that Rgb does not alter palette objects in any way. Example: ,

; setting a palette colour program example Screen 0,3 RGB 0,15,0,0

;open up an Intuition Screen ;this will set background colour to red

MouseWait See Also: PaIRGB, Red, Green, Blue

Function: Red Syntax: Red (Colour Register) Modes: AmigalBlitz Description: Red returns the amount of RGB red in a specified colour register. If executed in Amiga mode, Red returns the amount of red in the specified colour register of the currently used screen. If executed in Blitz mode, Red returns the amount of red in the specified colour register of the currently used slice. Red will always return a value in the range zero to fifteen.

17-4


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.