123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|685|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> converting colours...

Page : 1 2 Next
Prev
Sun, 26 Jul 2009, 06:58
spinal
Im trying to reduce regular colours down to a websafe palette...

where am i going wrong?



-=-=-
Check out my excellent homepage!
Sun, 26 Jul 2009, 07:07
Jayenkai


-=-=-
''Load, Next List!''
Mon, 27 Jul 2009, 05:08
spinal
The Results.....

I have managed to use simple pattern dithering to reduce an image from true colour down to 216 websafe colours.





-=-=-
Check out my excellent homepage!
Mon, 27 Jul 2009, 05:18
Jayenkai
Neat
Mon, 27 Jul 2009, 06:30
Phoenix
Why would you want to use the websafe palette? Is IE6 being the bottleneck once again? YouTube is phasing out support for that browser, so I think it's fairly safe for everyone to do that by now.
Mon, 27 Jul 2009, 07:18
spinal
It's for a DS project, I'm struggling with one of the graphic modes, so I'm using 8bit instead. However, I need to keep a few palette entries spare for a different part of the display and the websafe palette was the first thing that popped into my head for using less than 256 colours.


...I think the output from the code is quite good considering i'm not searching the palette for the best match colour.

-=-=-
Check out my excellent homepage!
Fri, 20 Nov 2009, 08:43
spinal
- Update -
I just attempted to do some floyd Stienberg dithering to the same websafe palette. The results came out quite good I think. All I really did was to BASICify some of the source from
ownloadcode/Floyd-Steinberg_dithering_©" target="_blank">https://en.literateprograms.org/Specialownloadcode/Floyd-Steinberg_dithering_©
I didn't expect it to work first time





-=-=-
Check out my excellent homepage!
Fri, 20 Nov 2009, 09:01
HoboBen
Nice - I think you did a better job than Paint Shop Pro's dithering, too

-=-=-
blog | work | code | more code
Sat, 21 Nov 2009, 17:54
CodersRule
Yeah looks nice, just looks like you took the image and added a texture to it
Sun, 22 Nov 2009, 02:07
spinal
It looks a bit speckly to me, perhaps later I will try some sort of custom palette, maybe use only the 256 most used colours or something.

-=-=-
Check out my excellent homepage!
Mon, 30 Nov 2009, 14:57
spinal
OK, here's a bash at using 256 most used colours from the image.




The converted image only uses 215 colours! I had to remove the dithering though, it went a bit crap, not a clue why yet.

-=-=-
Check out my excellent homepage!
Mon, 30 Nov 2009, 15:18
Jayenkai
That's lovely, although you have lost the house's redness...

-=-=-
''Load, Next List!''
Mon, 30 Nov 2009, 23:52
spinal
yup, its using the most used 256 colours, which, isn't such a good idea now that I think of it. However, I can't think of any other way to do it, other than a fixed palette, which can look worse

-=-=-
Check out my excellent homepage!
Mon, 07 Dec 2009, 15:15
spinal
Woohoo!!!!!!

I do believe I have done an ok job on this now. I cheated a lot on the palette reduction, instead of using a whole bunch of crazy analysis on the image, I just averaged out the colours and chose 256 of them.





-=-=-
Check out my excellent homepage!
Mon, 07 Dec 2009, 16:34
Nolan
Looks great except for a few white artifacts near the house.

-=-=-
nolandc.com
Mon, 07 Dec 2009, 17:54
Jayenkai
Fantastic! Best I've seen
Wed, 09 Dec 2009, 13:04
spinal
OK, cleaned the code up a little, added a couple of extra dithering patterns. I'm getting slightly different palettes now, now sure exactly why, perhaps something to do with the sorting. Anyway, the output still looks good and its a bit faster.



-=-=-
Check out my excellent homepage!
Wed, 09 Dec 2009, 14:06
JL235
They look awesome. At first I was confused because I couldn't tell if the ones on the right were meant to be the 256 colour versions or the originals. At a glance some of those really do look the same.

One small point, some of pallettes seem to contain a bright pink colour even though it's not used in the picture. Is that a bug?
Wed, 09 Dec 2009, 14:39
Afr0
Diablos: That's probably the default masking colour.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Wed, 09 Dec 2009, 14:47
spinal
I forced a few grey values and bright pink (255,0,255) into the palette, I need it for a project i'm working on, it doesn't hurt the image at all.

-=-=-
Check out my excellent homepage!
Mon, 08 Aug 2011, 05:06
Jayenkai
Super useful for rerendering iOS backgrounds for DS
Thanks again, Spinal!

-=-=-
''Load, Next List!''
Mon, 08 Aug 2011, 10:25
CodersRule
Forgot about this thread.
It really is quite spify.
Mon, 08 Aug 2011, 13:37
spinal
woohoo! Two yeas later and still working
Tue, 09 Aug 2011, 12:30
rockford
Has it really been two years! Time flies.
Tue, 09 Aug 2011, 12:59
Jayenkai
lol, same thought from me the other day..

"oh, yeah, Spinal made something for that a few months ago... *searches*... How long!!!!?!!"

-=-=-
''Load, Next List!''
Wed, 10 Aug 2011, 05:59
spinal
I never would have predicted how well the colour reduction would have worked though, it does indeed seem to be better than some commercial software

-=-=-
Check out my excellent homepage!
Page : 1 2 Next
Prev