Path: utzoo!mnetor!uunet!cbmvax!carolyn From: carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) Newsgroups: comp.sys.amiga Subject: Re: SetRGB4CM() from AmigaBasic?? Message-ID: <3075@cbmvax.UUCP> Date: 4 Jan 88 16:12:17 GMT References: <19578@bbn.COM> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) Organization: Commodore Technology, West Chester, PA Lines: 26 In article <19578@bbn.COM> cosell@bbn.com.UUCP (Bernie Cosell) writes: > >I could use a smidgeon of help: I'm doing a Basic hack and one piece of >it involves hacking with ColorMap's I have the GetRGB4() part working >fine, but when I try SetRGB4CM() I get "illegal function call". What is >Basic trying to tell me? The routine is defined in fd1.2/graphics_lib.fd, >and I think that it is also in graphics.bmap (I re-convertFD'ed the .fd >file (_known_ to have SetRGB4CM()) and got the same .bmap file). Worked fine for me. SetRGB4CM returns no value so don't DECLARE FUNCTION it, and use CALL to invoke it. CALL SetRGB4CM&(sColorMap&,n,r,g,b) Warning though - this function probably will not do what you want. It sets an RGB value in the ColorMap, but does not cause the display to be remade so you won't see the color. What you want may be LoadRGB4(). See LoadACBM on the Extras disk for an example of LoadRGB4() in cycling colors. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CATS >>Commodore Amiga Technical Support<< UUCP ...{allegra,ihnp4,rutgers}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=