Latest Uploads
Dungeon Ga ... n Progress

rychan

image-17-0 ... -18-36.jpg

Jayenkai

image-07-0 ... -20-20.jpg

Jayenkai

Kuron Cap Get!

rychan

Merry Christmas

Jayenkai

Invasion V ... tup screen

rychan

Forum Home

converting colours...

Page : 1 2

UserMessage
Posted : Sunday, 26 July 2009, 06:58 | Permalink
spinal


Im trying to reduce regular colours down to a websafe palette...

where am i going wrong?

-->

-----
Download "Don't Flip Out!" Directly to your OUYA! (Click Here).
Homepage : http://spinalcode.co.uk
Posted : Sunday, 26 July 2009, 07:07 | Permalink | Mark Here
Jayenkai


WW Entries : 103
-->

-----
"Load, Next List!"
Homepage : http://AGameAWeek.com
Posted : Monday, 27 July 2009, 05:08 | Permalink | Mark Here
spinal


The Results.....

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



-->

-----
Download "Don't Flip Out!" Directly to your OUYA! (Click Here).
Homepage : http://spinalcode.co.uk
Posted : Monday, 27 July 2009, 05:18 | Permalink | Mark Here
Jayenkai


Neat
Homepage : http://AGameAWeek.com
Posted : Monday, 27 July 2009, 06:30 | Permalink | Mark Here
Phoenix


WW Entries : 5
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.
Posted : Monday, 27 July 2009, 07:18 | Permalink | Mark Here
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.

-----
Download "Don't Flip Out!" Directly to your OUYA! (Click Here).
Homepage : http://spinalcode.co.uk
Posted : Friday, 20 November 2009, 08:43 | Permalink | Mark Here
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_©">http://en.literateprograms.org/Specialownloadcode/Floyd-Steinberg_dithering_©
I didn't expect it to work first time



-->

-----
Download "Don't Flip Out!" Directly to your OUYA! (Click Here).
Homepage : http://spinalcode.co.uk
Posted : Friday, 20 November 2009, 09:01 | Permalink | Mark Here
HoboBen


WW Entries : 9
Nice - I think you did a better job than Paint Shop Pro's dithering, too

-----
Posted : Saturday, 21 November 2009, 17:54 | Permalink | Mark Here
CodersRule


Yeah looks nice, just looks like you took the image and added a texture to it
Homepage : http://tacosareawesome.com/
Posted : Sunday, 22 November 2009, 02:07 | Permalink | Mark Here
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.

-----
Download "Don't Flip Out!" Directly to your OUYA! (Click Here).
Homepage : http://spinalcode.co.uk
Posted : Monday, 30 November 2009, 14:57 | Permalink | Mark Here
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.

-----
Download "Don't Flip Out!" Directly to your OUYA! (Click Here).
Homepage : http://spinalcode.co.uk
Posted : Monday, 30 November 2009, 15:18 | Permalink | Mark Here
Jayenkai


WW Entries : 103
That's lovely, although you have lost the house's redness...

-----
"Load, Next List!"
Homepage : http://AGameAWeek.com
Posted : Monday, 30 November 2009, 23:52 | Permalink | Mark Here
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

-----
Download "Don't Flip Out!" Directly to your OUYA! (Click Here).
Homepage : http://spinalcode.co.uk
Posted : Monday, 07 December 2009, 15:15 | Permalink | Mark Here
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.



-->

-----
Download "Don't Flip Out!" Directly to your OUYA! (Click Here).
Homepage : http://spinalcode.co.uk
Posted : Monday, 07 December 2009, 16:34 | Permalink | Mark Here
Nolan


WW Entries : 2
Looks great except for a few white artifacts near the house.

-----
nolandc.com
Homepage : http://nolandc.com
Posted : Monday, 07 December 2009, 17:54 | Permalink | Mark Here
Jayenkai


Fantastic! Best I've seen
Homepage : http://AGameAWeek.com
Posted : Wednesday, 09 December 2009, 13:04 | Permalink | Mark Here
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.

-->

-----
Download "Don't Flip Out!" Directly to your OUYA! (Click Here).
Homepage : http://spinalcode.co.uk
Posted : Wednesday, 09 December 2009, 14:06 | Permalink | Mark Here
JL235


WW Entries : 7
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?

-----
PlayMyCode.com - build and play in your browser, Blog, Twitter.
Homepage : http://www.StudioFortress.com
Posted : Wednesday, 09 December 2009, 14:39 | Permalink | Mark Here
Afr0


WW Entries : 3
Diablos: That's probably the default masking colour.

-----
Afr0 Games

Project Dollhouse on Github - Please fork!
Homepage : http://www.afr0games.com
Posted : Wednesday, 09 December 2009, 14:47 | Permalink | Mark Here
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.

-----
Download "Don't Flip Out!" Directly to your OUYA! (Click Here).
Homepage : http://spinalcode.co.uk
Posted : Monday, 08 August 2011, 05:06 | Permalink | Mark Here
Jayenkai


WW Entries : 103
Super useful for rerendering iOS backgrounds for DS
Thanks again, Spinal!

-----
"Load, Next List!"
Homepage : http://AGameAWeek.com
Posted : Monday, 08 August 2011, 10:25 | Permalink | Mark Here
CodersRule


Forgot about this thread.
It really is quite spify.
Homepage : http://tacosareawesome.com/
Posted : Monday, 08 August 2011, 13:37 | Permalink | Mark Here
spinal


woohoo! Two yeas later and still working
Homepage : http://spinalcode.co.uk
Posted : Tuesday, 09 August 2011, 12:30 | Permalink | Mark Here
rockford


Has it really been two years! Time flies.
Posted : Tuesday, 09 August 2011, 12:59 | Permalink | Mark Here
Jayenkai


WW Entries : 103
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!"
Homepage : http://AGameAWeek.com

Page : 1 2
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Artistic Payments
therevillsgames Fri 02:22
InDev: Mini LD Dungeon Crawler
rychan Thu 16:17
InDev : SpikeDislike3
Jayenkai Thu 15:45
Jayenkai's Daily Blog! Attempt #3923
Jayenkai Thu 03:17
Great Big Youtube thread
Jayenkai Wed 14:19
Pebble Watch Clocks
rockford Tue 04:07
My Teachers photo?
Jayenkai Mon 16:36
Every Day is Cakeday
steve_ancell Sun 15:56
Armiga Project
rockford Sun 13:44
Chrome Bookmarks?
Hotshot Sun 13:38
More

Latest Items
Blog : Back on the run
Jayenkai Tue 15:16
Dev-Diary : Helichopper stuffs
GfK Thu 09:13
Showcase : Crime (reloaded)
rockford Wed 07:30
Showcase : Blockman Forever
Steve Elliott Sun 12:42
Snippet : Lotto Number
Jayenkai Thu 15:14
Showcase : Invisible Munky 2
Jayenkai Thu 04:52
Blog : New Fence..
steve_ancell Wed 11:28
Snippet : Rotating Sphere
Dabz Sun 19:36
Woot : Three Years Later...
Kuron Fri 07:05
Snippet : IFS Fractal Viewer
Andy_A Mon 14:20
Showcase : Futrino
Jayenkai Thu 06:16
Showcase : Millenipede
Steve Elliott Mon 17:44
Snippet : Simple stack-based interpreter
tbohon Wed 12:08
Showcase : Santa's Workout 2
jayparker Tue 00:43
:
Wed 17:00
More

Who's Online
Jayenkai
Fri, at 02:45
therevillsgames
Fri, at 02:22
Hotshot
Fri, at 02:19
Pakz
Fri, at 02:12
steve_ancell
Fri, at 02:05
ferdi
Fri, at 01:43
rychan
Fri, at 01:39
Krakatomato
Fri, at 01:15
GfK
Fri, at 01:13
shroom_monk
Fri, at 01:06
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.