Convert true color image to -- a few colors --

Blitz3D Forums/Blitz3D Programming/Convert true color image to -- a few colors --

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Do I get this right, you want to use the colored plastic thingies to make a picture? They are pretty big, so I think dithering is no option. I would reduce the number of colors on the 24 Bit image until it fits the number of colors you got there in the pot. Then see which colors fit best to the ones on the image.

Reducing colors may be done with a graphics app. You can also do it in Blitz code, eg:

rgb=readpixelfast(x,y) and $FFFFFF
writepixelfast x,y, rgb and %111100001111000011110000

this will erase the lower significant 4 bits of each channel, resulting in less color tones.