English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 17 March 2019, 20:47   #1
MickGyver
Registered User

MickGyver's Avatar
 
Join Date: Oct 2008
Location: Finland
Posts: 407
Color cycling?

Hi! How do I set up color cycling (I'm using DisplayLibrary)? The CyclePalette command just make the game crash. I have set up some colors to cycle using the SetCycle command. Simply:

Code:
;Palette#,Cycle#,ColStart,ColEnd,Speed
SetCycle 0,0,26,28,0.2

; This makes the game crash (in Blitz mode)
CyclePalette 0

Last edited by MickGyver; 17 March 2019 at 20:56.
MickGyver is offline  
Old 18 March 2019, 08:27   #2
MickGyver
Registered User

MickGyver's Avatar
 
Join Date: Oct 2008
Location: Finland
Posts: 407
I solved this. The reason for the crash was that the IFF I loaded was saved in Cosmigo Pro Motion and it saves a 256 color palette. When I converted the IFF to 32 colors in PPaint and loaded the palette from that converted IFF, it all works.

I noticed that DisplayPalette needs to be called after the CyclePalette command for color cycling to work.

Last edited by MickGyver; 18 March 2019 at 08:36.
MickGyver is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Color Saturation and Color Tint/Hue Retro-Nerd support.WinUAE 22 02 August 2018 10:38
Color cycling in deluxe paint aszu support.Apps 2 15 May 2016 19:12
Printing in color with WinUAE on color laser source support.Apps 7 14 April 2013 00:32
ISO true color to 256 color algorithm Lord Riton Coders. General 19 15 April 2011 17:49
[1.6.1] cycling screens problem lours support.WinUAE 17 17 July 2009 12:56

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:38.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.05772 seconds with 13 queries