home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD2.bin
/
bbs
/
util
/
colorrequester-1.01.lha
/
ColorRequester
/
SCR.guide
(
.txt
)
< prev
next >
Wrap
Amigaguide Document
|
1994-01-16
|
2KB
|
37 lines
SCR is a Screen Color Requester for AGA Amigas. SCR opens a requester
containing palette controls that allow you to change, copy, swap, spread,
and cycle the colors of any public screen. AmigaDOS 3.0 is required.
Pen colors can be modified using individual RGB sliders for any pen
selected from the color palette.
Pen colors can be copied, swapped, spread, and cycled using the buttons
provided, which all operate in the same manner. Pick a starting pen from
the palette, and then click the desired button (Copy, Swap, Spread, or
Cycle). Then pick the ending pen from the palette, and the function will
operate between the starting and ending pens. Change the speed of color
cycling using the slider provided.
You can also save and load modified screen color maps by menu selection.
You can incorporate this color requester in your own programs. Link the
Palette.obj file with your own program and "XREF ChangePalette." Then
ChangePalette can be used as a subroutine to open the screen color
requester on either a public screen or a screen of your own. Pass the
screen address to ChangePalette on the stack. Passing a #$0 value will
cause the requester to open on the public screen. The code below shows how
this is done for the SCR program in assembly language.
**************************************************************
* Screen Color Requester (SCR)
**************************************************************
XREF ChangePalette
_main:
move.l #0,-(sp) ;In order to open on public screen
jsr ChangePalette ;Do the palette thing
add.l #4,sp ;Clean up stack
Close:
moveq #0,d0
rts ;bye
END
**************************************************************
SCR and Palette.obj are public domain programs. Please enjoy using
them, and if you have any comments or questions, contact me via Email
at RHorne@cup.portal.com.
Richard Horne