It was about windows version of scolorq original program.Ti_ wrote:windows version? I've found only plugin exist.
Don't panic, just forget about bits.Ti_ wrote:you set 9 bit color, and after tries to change color quanity - and bits changed too!
Moderator: BigEvilCorporation
Oooh, I've found it.r57shell wrote:It was about windows version of scolorq original program.Ti_ wrote:windows version? I've found only plugin exist.
Code: Select all
printf("Usage: spatial_color_quant <source image.rgb> <width> <height> <desired palette size> <output image.rgb> [dithering level] [filter size (1/3/5)]\n");
scolorq qcCi1U8.png 400 256 31 out.png 3
Great!r57shell wrote:Ok, here I made png support of scolorq
http://elektropage.ru/r57shell/scolorq.zip
I will investigate algo to see ability for making genesis palette.
Code: Select all
scolorq_png.exe qcCi1U8.png 31 out.png 0.2 3
Interesting.r57shell wrote:Woops! What is there?
Program. Fresh, right from compiler.
Sweet! Even sources included. :]
http://elektropage.ru/r57shell/scolorq_gen.zip
Code: Select all
scolor_gen qcCi1U8.png 36 outm1.png 0.1 3 1
Code: Select all
scolor_gen qcCi1U8.png 31 outm2.png 0.1 3 2
In usage noted: ignore duplicates. It means, they will remain. This mode for selection colors count more than need, and check that in result you have colors as needed.Ti_ wrote:Mode 1 produce lower count than you specify. (so you must use greater count)
Code: Select all
./bitmap2md.pl --resize 320x224 --colors 48 --sample forestmd.png --dither --output code.asm forest.png
Could you please explain why you can't get it to work so that I can fix it for you? Also here is a table based on real hardware that would be better for your script.frederic wrote: I tried to use Retro Graphics Toolkit to compare but I can't get it to work (either it has some bugs or I'm bad, I'll try again soon).
Code: Select all
0,49,87,119,146,174,206,255
Sure. I just downloaded the last version just to be sure (https://github.com/ComputerNerd/Retro-G ... master.zip).sega16 wrote:Could you please explain why you can't get it to work so that I can fix it for you?
Thanks a lot! I updated my script. I'll test later to see the difference.sega16 wrote: Also here is a table based on real hardware that would be better for your script.Code: Select all
0,49,87,119,146,174,206,255