View Single Post
Old 27 April 2017, 09:51   #57
MickGyver
Registered User
 
MickGyver's Avatar
 
Join Date: Oct 2008
Location: Finland
Posts: 643
Quote:
Originally Posted by Havie View Post
Can someone help me with palettes please!

I am using the new Display library commands and Use Palette doesn't work - I keep getting an error that there is no object. So - I have realised that I can't use old commands with the new display list but I have no idea how to get a palette from a shape. I have tried loading with shape with the optional palette command at the end but whatever I do I can't seem to change to this palette. Help!!!
Hmm, I haven't used BB2 very much but what has been working for me is to load the palette from the image (containing shapes) with

Code:
LoadPalette 0,"image.iff"
and then after creating the copperlist use DisplayPalette instead of Use Palette

Code:
; DisplayPalette #coplist, #palette
DisplayPalette 0,0
MickGyver is offline  
 
Page generated in 0.04393 seconds with 11 queries