11-22-2025, 06:51 PM
(11-22-2025, 05:42 PM)SMcNeill Wrote: @ahenry3068 Notice that we have two modes you can choose from for default.I get all this Steve. Thank ya. But I still think ImageMagick does a better job than the builtin Adaptive palette. (which isn't actually bad !)
256 uses the QB64PE built in palette.
257 does as you suggest and uses an adaptive palette for whatever best suits the image itself.
You can see the difference with the demo code above.
The main advantage to using the 256 color code is you *know* what each color is in your palette. Such as COLOR 40 is bright red. With an adaptive palette, the colors are whatever is best for the image, but not set to our existing scheme, so you may not be displaying the colors you expect with any text or whatnot which you use with that image.
Another reason to roll your own routine would be to map a whole bunch of images to an existing palette when porting from another platform too !
Probably the built in options cover a lot of use cases. But there are still reasons to *Roll your own code here !*

