Re: 256
- Posted by irv <irv at ELLIJAY.COM> Aug 25, 2000
- 420 views
On Tue, 22 Aug 2000, Ferdinand wrote: > > how can I list all the 256 colors ? I`v tried everything ! But nothing works . > > thanks > -- untested code! sequence pal -- set up your graphics mode first..... pal = get_all_palette() for i = 1 to length(pal) do printf("Index %d is %d\n",{i,pal[i]}) end for Now, this will only list a bunch of numbers. There aren't names attached to these, because color[22], for example, is only a storage place for a RBG value, which can be changed any time you load a new palette. In other words, the palette is just an array [1..16] or [1..256] where you can store any numbers you wish. Regards, Irv