123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|734|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> rgb color value to DATA letter value, DATA letter value to rgb color value

Mon, 30 Jun 2025, 03:56
RemiD

rgb color value to DATA letter value, DATA letter value to rgb color value


demonstrates how to read the colors of an image, and convert these rgb colors values to letters string values,
then output a txt file with these letters values organized in a way that it is formated for DATA (blitzbasic),
then read the letters string values stored in DATA, and convert each letter string value to a rgb color, and write these colors on a image.

Mon, 30 Jun 2025, 05:54
Jayenkai
IIRC, (though you might have to test it to be sure.. it might've been BlitzMax), Blitz could handle Color 0,0,RGB

That way you could have things like Red=&FF0000: Color 0,0,Red
(I think.. can't test right now, though. Blitz doesn't run on an iPad in the garden because it's too damn hot to be inside!!!)

-=-=-
''Load, Next List!''
Mon, 30 Jun 2025, 07:23
RemiD

Blitz could handle Color 0,0,RGB

That way you could have things like Red=&FF0000: Color 0,0,Red

not sure, but this is a good suggestion, indeed.
Mon, 30 Jun 2025, 09:28
Pixel_Outlaw
I'd use a select/case conditional or lookup table instead of all those ifs.
You then make a conversion function and call that.
Which version of BlitzBasic are you using?